changeset 30458:0df215fba6cf

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.
author Gábor Stefanik <gabor.stefanik@nng.com>
date Fri, 28 Oct 2016 17:44:28 +0200
parents 893be22cdb38
children bccd89b46cbf
files setup.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: