Skip to content

Commit

Permalink
[mypyc] Fix specifying opt level with scripts/mypyc (#8858)
Browse files Browse the repository at this point in the history
There's a lot that needs to be improved about this script but this was
just busted.
  • Loading branch information
msullivan authored May 20, 2020
1 parent b2fc30f commit 41927cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mypyc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ from distutils.core import setup
from mypyc.build import mypycify
setup(name='mypyc_output',
ext_modules=mypycify({}, {}),
ext_modules=mypycify({}, opt_level="{}"),
)
"""

Expand All @@ -36,7 +36,7 @@ def main() -> None:
except FileExistsError:
pass

opt_level = os.getenv("MYPYC_OPT_LEVEL", '')
opt_level = os.getenv("MYPYC_OPT_LEVEL", '3')

setup_file = os.path.join(build_dir, 'setup.py')
with open(setup_file, 'w') as f:
Expand Down

0 comments on commit 41927cf

Please sign in to comment.