[CentralOH] virtualenv and shared library

Mark Erbaugh mark at microenh.com
Sun May 15 23:02:13 CEST 2011


On May 13, 2011, at 6:20 PM, William McVey wrote:

>> 
>> I'm using virtualenv to install extra python libraries on my Mac and
>> I'm trying to keep the default Python as close to that as originally
>> supplied by Apple.  While under site-packages in the virtualenv, there
>> is a lib-dynload directory, but it is just a link to the default one.
>> Is there a place to install shared libraries that will be unique to a
>> given virtualenv?
> 
> I install python-ldap pretty frequently into virtualenvs, and the .so
> file ends up getting placed at the top level of site-packages. For
> example:
> 
> 
> PATH_TO_VIRTUALENV_ROOT/lib/python2.6/site-packages/_ldap.so


Thanks again,

I found that that putting _bsddb.so in site-packages does work. I also found that putting it one folder up,

PATH_TO_VIRTUALENV_ROOT/lib/python2.6 worked

Mark


More information about the CentralOH mailing list