[PATCH 2 of 2] setup: pass LD_LIBRARY_PATH to subprocess when determining version

Christian Boos cboos at neuf.fr
Mon Nov 9 11:33:10 CST 2009


# HG changeset patch
# User Christian Boos <cboos at bct-technology.com>
# Date 1257784881 -3600
# Node ID 80c3c838ac472b32de0a68bac1692b260bb44f58
# Parent  3e114d36f982e11696b359a408f69f6a45b6e071
setup: pass LD_LIBRARY_PATH to subprocess when determining version.

diff -r 3e114d36f982 -r 80c3c838ac47 setup.py
--- a/setup.py	Mon Nov 09 17:33:16 2009 +0100
+++ 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


More information about the Mercurial-devel mailing list