changeset 9856:ed362d41d1f6

setup: pass LD_LIBRARY_PATH to subprocess when determining version.
author Christian Boos <cboos@bct-technology.com>
date Mon, 09 Nov 2009 17:41:21 +0100
parents f47c0881b16e
children 24bc6e414610
files setup.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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