Re: [NOVICE] Python verison for build in config.pl (Win32)

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: [NOVICE] Python verison for build in config.pl (Win32)
Дата
Msg-id 9837222c1001201127l3d8dc0cfj6b039217b845cf52@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [NOVICE] Python verison for build in config.pl (Win32)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [NOVICE] Python verison for build in config.pl (Win32)  (James William Pye <lists@jwp.name>)
Список pgsql-hackers
On Wed, Jan 20, 2010 at 20:24, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> Or we'd welcome a patch for a smarter way to detect the version ;)
>
> This particular code doesn't look like it really needs to know the
> *version*.  What it wants is the full pathname of the python.lib file
> that goes with the python executable.  Isn't there a way to ask Python
> itself for that?

Well, it needs the version to match it to the DLL name. For python
2.6, it needs python26.dll. But yes, there should probably be some way
to ask python itself about that - that would be the non-naive method.
But as long as python is installed per default, we got it for free,
which is why it has "worked so far".



-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Streaming replication, retrying from archive
Следующее
От: David Fetter
Дата:
Сообщение: Re: Synchronization primitives (Was: Re: An example of bugs for Hot Standby)