Skip to content

Commit 41927cf

Browse files
authored
[mypyc] Fix specifying opt level with scripts/mypyc (#8858)
There's a lot that needs to be improved about this script but this was just busted.
1 parent b2fc30f commit 41927cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/mypyc

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ from distutils.core import setup
2525
from mypyc.build import mypycify
2626
2727
setup(name='mypyc_output',
28-
ext_modules=mypycify({}, {}),
28+
ext_modules=mypycify({}, opt_level="{}"),
2929
)
3030
"""
3131

@@ -36,7 +36,7 @@ def main() -> None:
3636
except FileExistsError:
3737
pass
3838

39-
opt_level = os.getenv("MYPYC_OPT_LEVEL", '')
39+
opt_level = os.getenv("MYPYC_OPT_LEVEL", '3')
4040

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

0 commit comments

Comments
 (0)