Show More
@@ -67,6 +67,7 b' def build_py2exe(' | |||||
67 | extra_excludes=None, |
|
67 | extra_excludes=None, | |
68 | extra_dll_excludes=None, |
|
68 | extra_dll_excludes=None, | |
69 | extra_packages_script=None, |
|
69 | extra_packages_script=None, | |
|
70 | extra_includes=None, | |||
70 | ): |
|
71 | ): | |
71 | """Build Mercurial with py2exe. |
|
72 | """Build Mercurial with py2exe. | |
72 |
|
73 | |||
@@ -176,6 +177,8 b' def build_py2exe(' | |||||
176 | ) |
|
177 | ) | |
177 | if hgext3rd_extras: |
|
178 | if hgext3rd_extras: | |
178 | env['HG_PY2EXE_EXTRA_INSTALL_PACKAGES'] = ' '.join(hgext3rd_extras) |
|
179 | env['HG_PY2EXE_EXTRA_INSTALL_PACKAGES'] = ' '.join(hgext3rd_extras) | |
|
180 | if extra_includes: | |||
|
181 | env['HG_PY2EXE_EXTRA_INCLUDES'] = ' '.join(sorted(extra_includes)) | |||
179 | if extra_excludes: |
|
182 | if extra_excludes: | |
180 | env['HG_PY2EXE_EXTRA_EXCLUDES'] = ' '.join(sorted(extra_excludes)) |
|
183 | env['HG_PY2EXE_EXTRA_EXCLUDES'] = ' '.join(sorted(extra_excludes)) | |
181 | if extra_dll_excludes: |
|
184 | if extra_dll_excludes: |
@@ -1694,6 +1694,8 b' py2exepackages = [' | |||||
1694 | 'mercurial.pure', |
|
1694 | 'mercurial.pure', | |
1695 | ] |
|
1695 | ] | |
1696 |
|
1696 | |||
|
1697 | py2exe_includes = [] | |||
|
1698 | ||||
1697 | py2exeexcludes = [] |
|
1699 | py2exeexcludes = [] | |
1698 | py2exedllexcludes = ['crypt32.dll'] |
|
1700 | py2exedllexcludes = ['crypt32.dll'] | |
1699 |
|
1701 | |||
@@ -1722,6 +1724,10 b' if py2exeloaded:' | |||||
1722 | if extrapackages: |
|
1724 | if extrapackages: | |
1723 | py2exepackages.extend(extrapackages.split(' ')) |
|
1725 | py2exepackages.extend(extrapackages.split(' ')) | |
1724 |
|
1726 | |||
|
1727 | extra_includes = os.environ.get('HG_PY2EXE_EXTRA_INCLUDES') | |||
|
1728 | if extra_includes: | |||
|
1729 | py2exe_includes.extend(extra_includes.split(' ')) | |||
|
1730 | ||||
1725 | excludes = os.environ.get('HG_PY2EXE_EXTRA_EXCLUDES') |
|
1731 | excludes = os.environ.get('HG_PY2EXE_EXTRA_EXCLUDES') | |
1726 | if excludes: |
|
1732 | if excludes: | |
1727 | py2exeexcludes.extend(excludes.split(' ')) |
|
1733 | py2exeexcludes.extend(excludes.split(' ')) | |
@@ -1821,6 +1827,7 b' setup(' | |||||
1821 | 'py2exe': { |
|
1827 | 'py2exe': { | |
1822 | 'bundle_files': 3, |
|
1828 | 'bundle_files': 3, | |
1823 | 'dll_excludes': py2exedllexcludes, |
|
1829 | 'dll_excludes': py2exedllexcludes, | |
|
1830 | 'includes': py2exe_includes, | |||
1824 | 'excludes': py2exeexcludes, |
|
1831 | 'excludes': py2exeexcludes, | |
1825 | 'packages': py2exepackages, |
|
1832 | 'packages': py2exepackages, | |
1826 | }, |
|
1833 | }, |
General Comments 0
You need to be logged in to leave comments.
Login now