install modules for specific python version

M.-A. Lemburg mal at egenix.com
Mon Feb 2 08:21:31 EST 2009


On 2009-02-01 02:00, Brendan Miller wrote:
> I have several version of python running side by side on my ubuntu
> install (2.5,2.6,3.0).
> 
> I'm installing a module with a setup.py script, in this case
> logilab-common, so that I can get pylint going. However, I need to
> install into python 2.6, but by default it picks out 2.5 and throws
> things in the site packages for that version.
> 
> Is there a standard way to specify what version of python you want to
> install into? I originally installed my other python versions with the
> altinstall method.

That's easy: just call the setup.py script with the version you want
the modules installed to, e.g.

python2.5 setup.py install
python2.6 setup.py install
etc.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Feb 02 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/



More information about the Python-list mailing list