Skip site navigation (1) Skip section navigation (2)

Re: RPM question: Where to put psycopg2 files

From: "Alexander Loechel" <Alexander(dot)Loechel(at)unibw(dot)de>
To: psycopg(at)postgresql(dot)org
Subject: Re: RPM question: Where to put psycopg2 files
Date: 2011-01-17 08:34:45
Message-ID: 5a57dc1e1c0a1c066cefe2cdd5d00f60.squirrel@mail.unibw.de (view raw or flat)
Thread:
Lists: 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
>
>



In response to

psycopg by date

Next:From: Karsten HilbertDate: 2011-01-17 13:02:43
Subject: Re: RPM question: Where to put psycopg2 files
Previous:From: Federico Di GregorioDate: 2011-01-17 08:05:40
Subject: Re: RPM question: Where to put psycopg2 files

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group