Re: RPM question: Where to put psycopg2 files

Поиск
Список
Период
Сортировка
От Alexander Loechel
Тема Re: RPM question: Where to put psycopg2 files
Дата
Msg-id 5a57dc1e1c0a1c066cefe2cdd5d00f60.squirrel@mail.unibw.de
обсуждение исходный текст
Ответ на RPM question: Where to put psycopg2 files  (Devrim GÜNDÜZ <devrim@gunduz.org>)
Список 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 по дате отправления:

Предыдущее
От: Federico Di Gregorio
Дата:
Сообщение: Re: RPM question: Where to put psycopg2 files
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: RPM question: Where to put psycopg2 files