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

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

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Matt <bsg075(at)gmail(dot)com>, pgsql-novice <pgsql-novice(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [NOVICE] Python verison for build in (Win32)
Date: 2010-01-20 19:27:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-novice
On Wed, Jan 20, 2010 at 20:24, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Magnus Hagander <magnus(at)hagander(dot)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 Hagander

In response to


pgsql-novice by date

Next:From: Morris, RoyDate: 2010-01-20 19:47:03
Subject: Re: UUID - 8.4.2
Previous:From: Tom LaneDate: 2010-01-20 19:24:07
Subject: Re: [HACKERS] Python verison for build in (Win32)

pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2010-01-20 19:43:40
Subject: pgsql: Write a WAL record whenever we perform an operation without
Previous:From: Heikki LinnakangasDate: 2010-01-20 19:26:37
Subject: Re: Streaming replication, retrying from archive

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