Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brRun-000521-M3 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Oct 2016 15:45:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1brRun-0000dN-77 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Oct 2016 15:45:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1brRum-0000dH-Rk for pgsql-hackers@postgreSQL.org; Tue, 04 Oct 2016 15:45:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1brRuk-0000Tg-EH for pgsql-hackers@postgreSQL.org; Tue, 04 Oct 2016 15:45:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u94FjpqL007922; Tue, 4 Oct 2016 11:45:51 -0400 From: Tom Lane To: Andrew Dunstan cc: pgsql-hackers@postgreSQL.org Subject: Re: Misidentification of Python shared library In-reply-to: References: <5300.1475592228@sss.pgh.pa.us> Comments: In-reply-to Andrew Dunstan message dated "Tue, 04 Oct 2016 11:07:36 -0400" Date: Tue, 04 Oct 2016 11:45:51 -0400 Message-ID: <7921.1475595951@sss.pgh.pa.us> X-Pg-Spam-Score: -4.5 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andrew Dunstan 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