Re: plpython win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: plpython win32
Date: 2004-09-25 12:26:13
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE4569FC@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

>> We run the first part of the autoconf test. The one that sets
>> python_includespec. (PGAC_PATH_PYTHON) We just skip the
>parts that tries
>> to read the Makefile.
>
>It would be better to put an "if" in the PGAC_CHECK_PYTHON_EMBED_SETUP
>macro, and have it use some other technique for obtaining the info it
>needs when on Windows.

Ok. I'll look into that.

>If they don't have a Makefile, one would hope they have some other kind
>of file that has the needed info. Or doesn't Python support embedding
>on Windows?

They do. They just don't install the Makefile (could be because it's all
built with MSVC).

The distutils module has a get_python_inc() function which returns the
include directory. If this one was used, we wouldn't have to hack up the
include path as I do now. Is there any reason this is not used on Unix,
instead of the hardcoded subdirectory-of-"python_prefix" way it is now?
(in _PGAC_CHECK_PYTHON_DIRS)

//Magnus

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2004-09-25 15:03:49 Re: plpython win32
Previous Message Mahmoud Taghizadeh 2004-09-25 10:04:25 Re: How to add locale support for each column?