Re: [NOVICE] Python verison for build in config.pl (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 config.pl (Win32)
Date: 2010-01-20 19:09:47
Message-ID: 9837222c1001201109j245a8b2cl12651e104634a7a1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

On Wed, Jan 20, 2010 at 18:59, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Matt <bsg075(at)gmail(dot)com> writes:
>> Attempting to build 8.5 alpha on Windows XP (MSVC 2005) with Python support.
>> Path to local interpreter added to config.pl (C:\Python), but message is
>> presented:
>
>>   "Could not determine python version from path at build.pl line 38"
>
>> Do the build scripts attempt to determine the Python version from the path
>> name? Since my machine has a generic path name, is there a way to specify
>> the interpreter version?
>
> Hm, I see this in Mkvcbuild.pm:
>
>        $solution->{options}->{python} =~ /\\Python(\d{2})/i
>          || croak "Could not determine python version from path";
>        $plpython->AddLibrary($solution->{options}->{python} . "\\Libs\\python$1.lib");
>
> Apparently you need to hack that to deduce the appropriate library
> pathname.  What exactly is your python path name, and is it a standard
> installation pattern at all?

From the OP, it's c:\python.

And yes, the python version detection is very naive, in that it
expects the default installation paths which are c:\python25 for
example. So you'll need to move your python installation to the
default location.

Or we'd welcome a patch for a smarter way to detect the version ;)

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-01-20 19:22:49 Re: Synchronization primitives (Was: Re: An example of bugs for Hot Standby)
Previous Message Tom Lane 2010-01-20 19:07:00 Re: Synchronization primitives (Was: Re: An example of bugs for Hot Standby)

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2010-01-20 19:24:07 Re: [HACKERS] Python verison for build in config.pl (Win32)
Previous Message Tom Lane 2010-01-20 18:35:55 Re: UUID - 8.4.2