comparison contrib/packaging/hgpackaging/py2exe.py @ 41953:d6e3c16d48ab

packaging: don't bundle DLLs in py2exe library.zip for x86 builds I had ported the x86/x64 behavior difference from the Inno Setup installer files. Why things were this way, I'm not sure. The WiX configuration files are expecting to have standalone DLL files for both configurations. And the 32-bit WiX installers were broken due to missing DLLs. Let's standardize on standalone DLL files on all configurations for consistency. I /think/ this will be faster, as I /think/ py2exe binaries would have to extract the DLL to a temporary file in order to load it. But I'm not 100% sure about that. Differential Revision: https://phab.mercurial-scm.org/D6135
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 14 Mar 2019 13:27:37 -0700
parents 260305e8ddbd
children 715d3220ac4f
comparison
equal deleted inserted replaced
41952:b83de9150c1c 41953:d6e3c16d48ab
126 env['PATH'], os.pathsep, str(gettext_root / 'bin')) 126 env['PATH'], os.pathsep, str(gettext_root / 'bin'))
127 127
128 print('building Mercurial') 128 print('building Mercurial')
129 subprocess.run( 129 subprocess.run(
130 [str(venv_python), 'setup.py', 130 [str(venv_python), 'setup.py',
131 'py2exe', '-b', '3' if vc_x64 else '2', 131 'py2exe',
132 'build_doc', '--html'], 132 'build_doc', '--html'],
133 cwd=str(source_dir), 133 cwd=str(source_dir),
134 env=env, 134 env=env,
135 check=True) 135 check=True)