From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Misidentification of Python shared library
Date: Tue, 04 Oct 2016 11:45:51 -0400
Message-ID: <7921.1475595951@sss.pgh.pa.us> (raw)
In-Reply-To: <b0f76751-9c5f-fea6-7d0b-1d8fed13435a@dunslane.net>
References: <5300.1475592228@sss.pgh.pa.us>
<b0f76751-9c5f-fea6-7d0b-1d8fed13435a@dunslane.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andrew Dunstan <andrew@dunslane.net> writes:
> On 10/04/2016 10:43 AM, Tom Lane wrote:
>> 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.
Actually, given that we no longer support Python < 2.3, I am not sure
we need to bother with looking in $python_configdir at all.
But looking at the installations on my older Apple boxes, it seems that
*neither* $python_libdir nor $python_configdir contain any library at all;
rather libpython.dylib sits in good old /usr/lib and is found there
despite the -L switch pointing to noplace useful. So I'm now thinking
that we should do the above dance in a list of directories like
"$python_libdir /usr/lib64 /usr/lib" (too bad there's no easy
platform-independent way to find out the linker's default search path).
We can add $python_configdir to that if it proves necessary, but I'll try
it without first.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, andrew@dunslane.net
Subject: Re: Misidentification of Python shared library
In-Reply-To: <7921.1475595951@sss.pgh.pa.us>
References: <5300.1475592228@sss.pgh.pa.us> <b0f76751-9c5f-fea6-7d0b-1d8fed13435a@dunslane.net> <7921.1475595951@sss.pgh.pa.us>
* 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