setup: run hg with empty HGRCPATH for robustness.
authorMartin Geisler <mg@daimi.au.dk>
Tue, 24 Feb 2009 18:09:16 +0100
changeset 7801 e5627562b9f2
parent 7800 58125c27ddbe
child 7803 6d99ff7b79b5
child 7804 06afe0f9dbf8
setup: run hg with empty HGRCPATH for robustness. Otherwise a bad hgrc file can make the version detection fail.
setup.py
--- a/setup.py	Tue Feb 24 16:05:43 2009 +0100
+++ b/setup.py	Tue Feb 24 18:09:16 2009 +0100
@@ -103,6 +103,7 @@
     pypath = os.environ.get('PYTHONPATH', '')
     purepath = os.path.join('mercurial', 'pure')
     os.environ['PYTHONPATH'] = os.pathsep.join(['mercurial', purepath, pypath])
+    os.environ['HGRCPATH'] = '' # do not read any config file
     cmd = '%s hg id -it' % sys.executable
     l = os.popen(cmd).read().split()
     os.environ['PYTHONPATH'] = pypath