##// END OF EJS Templates
py2exe: add workaround to allow bundling of hgext3rd.* extensions...
Augie Fackler -
r42221:399ed3e8 default
parent child Browse files
Show More
@@ -118,6 +118,10 b' def build_py2exe(source_dir: pathlib.Pat'
118 118
119 119 if extra_packages:
120 120 env['HG_PY2EXE_EXTRA_PACKAGES'] = ' '.join(sorted(extra_packages))
121 hgext3rd_extras = sorted(
122 e for e in extra_packages if e.startswith('hgext3rd.'))
123 if hgext3rd_extras:
124 env['HG_PY2EXE_EXTRA_INSTALL_PACKAGES'] = ' '.join(hgext3rd_extras)
121 125 if extra_excludes:
122 126 env['HG_PY2EXE_EXTRA_EXCLUDES'] = ' '.join(sorted(extra_excludes))
123 127 if extra_dll_excludes:
@@ -975,6 +975,12 b' if sys.version_info[0] == 2:'
975 975 packages.extend(['mercurial.thirdparty.concurrent',
976 976 'mercurial.thirdparty.concurrent.futures'])
977 977
978 if 'HG_PY2EXE_EXTRA_INSTALL_PACKAGES' in os.environ:
979 # py2exe can't cope with namespace packages very well, so we have to
980 # install any hgext3rd.* extensions that we want in the final py2exe
981 # image here. This is gross, but you gotta do what you gotta do.
982 packages.extend(os.environ['HG_PY2EXE_EXTRA_INSTALL_PACKAGES'].split(' '))
983
978 984 common_depends = ['mercurial/bitmanipulation.h',
979 985 'mercurial/compat.h',
980 986 'mercurial/cext/util.h']
General Comments 0
You need to be logged in to leave comments. Login now