This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serge-sans-paille
Recipients serge-sans-paille
Date 2015-11-18.14:48:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447858128.82.0.165586856524.issue25657@psf.upfronthosting.co.za>
In-reply-to
Content
My use cas of virtual env was the following:

1. create a virtual env
2. install a third party shared library and its python wrapper
3. import the wrapper that itself loads the shared library

The problem is that the shared library gets install into <my_env>/lib (which is a normal behavior) but virtualenv's activate does not update LD_LIBRARY_PATH

A possible fix would be to add the following lines into virtualenv's activate:

```
if [ -n "$_OLD_VIRTUAL_LD_LIBRARY_PATH" ] ; then
    PATH="$_OLD_VIRTUAL_LD_LIBRARY_PATH"
    export LD_LIBRARY_PATH
    unset _OLD_VIRTUAL_LD_LIBRARY_PATH
fi
```

and a bit later

```
_OLD_VIRTUAL_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
LD_LIBRARY_PATH="$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
```

in a simialr manner to what is done with `PATH`
History
Date User Action Args
2015-11-18 14:48:48serge-sans-paillesetrecipients: + serge-sans-paille
2015-11-18 14:48:48serge-sans-paillesetmessageid: <1447858128.82.0.165586856524.issue25657@psf.upfronthosting.co.za>
2015-11-18 14:48:48serge-sans-paillelinkissue25657 messages
2015-11-18 14:48:48serge-sans-paillecreate