equal
deleted
inserted
replaced
65 venv_requirements_txt: pathlib.Path, |
65 venv_requirements_txt: pathlib.Path, |
66 extra_packages=None, |
66 extra_packages=None, |
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 |
73 Build files will be placed in ``build_dir``. |
74 Build files will be placed in ``build_dir``. |
74 |
75 |
174 hgext3rd_extras = sorted( |
175 hgext3rd_extras = sorted( |
175 e for e in extra_packages if e.startswith('hgext3rd.') |
176 e for e in extra_packages if e.startswith('hgext3rd.') |
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: |
182 env['HG_PY2EXE_EXTRA_DLL_EXCLUDES'] = ' '.join( |
185 env['HG_PY2EXE_EXTRA_DLL_EXCLUDES'] = ' '.join( |
183 sorted(extra_dll_excludes) |
186 sorted(extra_dll_excludes) |