setup: include a dummy $PATH in the custom environment used by build.py
This is required for building with pypiwin32, the pip-installable replacement
for pywin32.
--- a/setup.py Fri Nov 11 07:01:27 2016 -0800
+++ b/setup.py Fri Oct 28 17:44:28 2016 +0200
@@ -168,7 +168,8 @@
# to not use any hgrc files and do no localization.
env = {'HGMODULEPOLICY': 'py',
'HGRCPATH': '',
- 'LANGUAGE': 'C'}
+ 'LANGUAGE': 'C',
+ 'PATH': ''} # make pypi modules that use os.environ['PATH'] happy
if 'LD_LIBRARY_PATH' in os.environ:
env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']
if 'SystemRoot' in os.environ: