setup: pass LD_LIBRARY_PATH to subprocess when determining version.
authorChristian Boos <cboos@bct-technology.com>
Mon, 09 Nov 2009 17:41:21 +0100
changeset 9856 ed362d41d1f6
parent 9855 f47c0881b16e
child 9857 24bc6e414610
setup: pass LD_LIBRARY_PATH to subprocess when determining version.
setup.py
--- a/setup.py	Wed Nov 11 14:38:59 2009 +0900
+++ b/setup.py	Mon Nov 09 17:41:21 2009 +0100
@@ -121,6 +121,8 @@
     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