Re: RPM question: Where to put psycopg2 files - Mailing list psycopg

From Alexander Loechel
Subject Re: RPM question: Where to put psycopg2 files
Date
Msg-id 5a57dc1e1c0a1c066cefe2cdd5d00f60.squirrel@mail.unibw.de
Whole thread Raw
In response to RPM question: Where to put psycopg2 files  (Devrim GÜNDÜZ <devrim@gunduz.org>)
List psycopg
Hi,

As it is no psycopg2 owned problem, instead it is python related there are
python techniques to solve this.

If you want to install two different versions of an Python egg virtualenv
(http://pypi.python.org/pypi/virtualenv) is your best friend. It allows
you to separate your working python from your system python. For each
virtualenv environment a special/separate egg version is supported.

Alexander

>
> Hi,
>
> As of PostgreSQL 9.0+, PostgreSQL RPMs can be installed in parallel,
> e.g., you can use 9.0 along with 9.1. I updated most of the packages to
> use that layout, but I'm stuck with psycopg2.
>
> psycopg2 is currently installed under this directory:
>
> `python  -c "from distutils.sysconfig import get_python_lib; print
> get_python_lib(1)"`/psycopg2
>
> For example,
>
> /usr/lib64/python2.7/site-packages/psycopg2/
>
> If I want to install two different psycopg2 versions which are compiled
> against 9.0 and 9.1, they will overwrite each other.
>
> What is the best way to use separate directories for that? Is there a
> setup.py parameter for that?
>
> Regards,
> --
> Devrim GÜNDÜZ
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> PostgreSQL RPM Repository: http://yum.pgrpms.org
> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz
>
>



psycopg by date:

Previous
From: Federico Di Gregorio
Date:
Subject: Re: RPM question: Where to put psycopg2 files
Next
From: Karsten Hilbert
Date:
Subject: Re: RPM question: Where to put psycopg2 files