From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@postgreSQL.org
Subject: Re: Misidentification of Python shared library
Date: Tue, 4 Oct 2016 11:07:36 -0400
Message-ID: <b0f76751-9c5f-fea6-7d0b-1d8fed13435a@dunslane.net> (raw)
In-Reply-To: <5300.1475592228@sss.pgh.pa.us>
References: <5300.1475592228@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 10/04/2016 10:43 AM, Tom Lane wrote:
> While chasing down last night's failure on buildfarm member longfin,
> I came across an interesting factoid. If you just do
>
> ./configure --enable-shared
> make
> make install
>
> in unmodified Python sources, what you will get is an install tree in
> which libpython.so (or local equivalent such as .dylib) is installed
> in /usr/local/lib, while libpython.a is installed in a directory named
> like /usr/local/lib/python3.5/config-3.5m. I've verified this behavior
> on both Linux and macOS.
Wow, these modules have uncovered a number of cans of worms.
>
>
> In short: I propose replacing all of this logic with "if there's something
> in $python_libdir that has the right name to be a python shared library,
> use that, else try the same in $python_configdir, else fail". Thoughts?
>
>
Seems reasonable.
cheers
andrew
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us
Subject: Re: Misidentification of Python shared library
In-Reply-To: <b0f76751-9c5f-fea6-7d0b-1d8fed13435a@dunslane.net>
References: <5300.1475592228@sss.pgh.pa.us> <b0f76751-9c5f-fea6-7d0b-1d8fed13435a@dunslane.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox