Set Py_OptimizeFlag from bootloader

This commit is contained in:
Oleksii Shevchuk 2017-04-05 19:18:21 +03:00
parent 109c3989ff
commit e9b3526d03
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ if __name__=="__main__":
remove_stdout if not args.debug else 'print "DEBUG"\n',
'import sys; sys.path=[]; sys.path_hooks=[]; sys.meta_path=[];' + (
'sys.argv = [];' if not args.pass_argv else ''
) + 'sys.prefix = ""; \n',
) + 'sys.prefix = ""; sys.flags.optimize=1;\n',
pupyload.format('pupyimporter', repr(pupyimporter)),
'import pupyimporter\n'
'pupyimporter.install({})\n'.format(args.debug),