hub/venv/Lib/site-packages/setuptools/_distutils/py35compat.py
Soroush Samareh Abolhassani 3d922ab4f4 I added an idf sample from DOE
2021-08-17 10:17:07 -04:00

20 lines
455 B
Python

import sys
import subprocess
def __optim_args_from_interpreter_flags():
"""Return a list of command-line arguments reproducing the current
optimization settings in sys.flags."""
args = []
value = sys.flags.optimize
if value > 0:
args.append("-" + "O" * value)
return args
_optim_args_from_interpreter_flags = getattr(
subprocess,
"_optim_args_from_interpreter_flags",
__optim_args_from_interpreter_flags,
)