setup: include a dummy $PATH in the custom environment used by build.py
authorGábor Stefanik <gabor.stefanik@nng.com>
Fri, 28 Oct 2016 17:44:28 +0200
changeset 30458 0df215fba6cf
parent 30457 893be22cdb38
child 30459 bccd89b46cbf
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.
setup.py
--- 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: