Mercurial > public > mercurial-scm > hg
comparison setup.py @ 33599:cfa08b06d8b5 stable
setup: forcibly include cext/pure packages in py2exe (issue5625)
Since these modules are implicitly imported by policy.importmod(), py2exe
can't track them statically. cffi modules are excluded for now because they
wouldn't be useful in frozen (i.e. CPython) environment.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 20 Jul 2017 22:47:40 +0900 |
parents | f30714a55523 |
children | 47829b89c8c6 |
comparison
equal
deleted
inserted
replaced
33598:f30714a55523 | 33599:cfa08b06d8b5 |
---|---|
932 ext_modules=extmodules, | 932 ext_modules=extmodules, |
933 data_files=datafiles, | 933 data_files=datafiles, |
934 package_data=packagedata, | 934 package_data=packagedata, |
935 cmdclass=cmdclass, | 935 cmdclass=cmdclass, |
936 distclass=hgdist, | 936 distclass=hgdist, |
937 options={'py2exe': {'packages': ['hgdemandimport', 'hgext', 'email']}, | 937 options={'py2exe': {'packages': ['hgdemandimport', 'hgext', 'email', |
938 # implicitly imported per module policy | |
939 # (cffi wouldn't be used as a frozen exe) | |
940 'mercurial.cext', | |
941 #'mercurial.cffi', | |
942 'mercurial.pure']}, | |
938 'bdist_mpkg': {'zipdist': False, | 943 'bdist_mpkg': {'zipdist': False, |
939 'license': 'COPYING', | 944 'license': 'COPYING', |
940 'readme': 'contrib/macosx/Readme.html', | 945 'readme': 'contrib/macosx/Readme.html', |
941 'welcome': 'contrib/macosx/Welcome.html', | 946 'welcome': 'contrib/macosx/Welcome.html', |
942 }, | 947 }, |