# HG changeset patch # User Matt Mackall # Date 2011-10-26 17:56:27 # Node ID b357a972d6cd4f1554566e2f3920ab6a2344c310 # Parent 06b8db3f25c6fb85b7a75e2e7a21a90f58c7ab79 setup: set env global earlier (3073) diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -133,14 +133,14 @@ def runhg(cmd, env): version = '' +env = {'HGRCPATH': '', 'LANGUAGE': 'C'} + if os.path.isdir('.hg'): # Execute hg out of this directory with a custom environment which # includes the pure Python modules in mercurial/pure. We also take # care to not use any hgrc files and do no localization. pypath = ['mercurial', os.path.join('mercurial', 'pure')] - env = {'PYTHONPATH': os.pathsep.join(pypath), - 'HGRCPATH': '', - 'LANGUAGE': 'C'} + env['PYTHONPATH'] = os.pathsep.join(pypath) if 'LD_LIBRARY_PATH' in os.environ: env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] if 'SystemRoot' in os.environ: