Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/setuptools/_distutils/py35compat.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 import sys | |
2 import subprocess | |
3 | |
4 | |
5 def __optim_args_from_interpreter_flags(): | |
6 """Return a list of command-line arguments reproducing the current | |
7 optimization settings in sys.flags.""" | |
8 args = [] | |
9 value = sys.flags.optimize | |
10 if value > 0: | |
11 args.append("-" + "O" * value) | |
12 return args | |
13 | |
14 | |
15 _optim_args_from_interpreter_flags = getattr( | |
16 subprocess, | |
17 "_optim_args_from_interpreter_flags", | |
18 __optim_args_from_interpreter_flags, | |
19 ) |