# HG changeset patch # User Christian Boos <cboos@bct-technology.com> # Date 2009-11-09 16:41:21 # Node ID ed362d41d1f636a2029e53dfb0fb28ff8a154d86 # Parent f47c0881b16ed65ab560afb2ce49e34434a258ae setup: pass LD_LIBRARY_PATH to subprocess when determining version. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -121,6 +121,8 @@ if os.path.isdir('.hg'): env = {'PYTHONPATH': os.pathsep.join(pypath), 'HGRCPATH': '', 'LANGUAGE': 'C'} + if 'LD_LIBRARY_PATH' in os.environ: + env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] if 'SystemRoot' in os.environ: # Copy SystemRoot into the custom environment for Python 2.6 # under Windows. Otherwise, the subprocess will fail with