How to share 3rd-party modules between 2.2 and 2.3?

Gerhard Häring gh at ghaering.de
Thu Dec 4 02:50:14 EST 2003


Martin v. Löwis wrote:
> Matthew Wilson wrote:
> 
>> I want to write some CGI scripts that use pgdb.  I want to write the
>> python scripts using python2.3, but the pgdb.py file is in
>> /usr/lib/python2.2/site-packages
>>
>> which is not part of sys.path in python2.3.  What is the best way of
>> sharing these modules?
> 
> Put the code in /usr/lib/site-python.

I suppose pgdb.py is from PyGreSQL, which includes a C extension module. Sharing 
extension modules between different Python minor versions *might* work, but it's 
best to just install the package in question for both Python 2.2 and 2.3.

-- Gerhard






More information about the Python-list mailing list