From: clay@daemons.net
To: pgsql-bugs@postgresql.org
Subject: BUG #6633: PL/Python build does not honor PYTHON on Mac OS X
Date: Mon, 07 May 2012 18:52:08 +0000
Message-ID: <E1SRT2W-0001xH-EF@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6633
Logged by: Clay McClure
Email address: clay@daemons.net
PostgreSQL version: 9.1.3
Operating system: Darwin / Mac OS X 10.7.3 (Lion)
Description:
According to the installation documentation, one can set the PYTHON
environment variable to control which python is used to build PL/Python, but
this does not work correctly on Mac OS X.
The configure script correctly sets python_libspec based on the PYTHON
environment variable, but the plpython Makefile clobbers that value:
# Darwin (OS X) has its own ideas about how to do this.
ifeq ($(PORTNAME), darwin)
shared_libpython = yes
override python_libspec = -framework Python
override python_additional_libs =
endif
According to a Homebrew bug report
(https://github.com/mxcl/homebrew/issues/11162):
"You should submit a bug report to PostgreSQL as they can't assume Python is
always built as a Framework on Darwin. They should be using python-config to
get the gory details."
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-bugs@postgresql.org
Cc: clay@daemons.net
Subject: Re: BUG #6633: PL/Python build does not honor PYTHON on Mac OS X
In-Reply-To: <E1SRT2W-0001xH-EF@wrigleys.postgresql.org>
References: <E1SRT2W-0001xH-EF@wrigleys.postgresql.org>
* 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