Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id F31DF1DB6346 for ; Mon, 7 May 2012 15:52:24 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SRT2j-0002EB-T8 for pgsql-bugs@postgresql.org; Mon, 07 May 2012 18:52:24 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SRT2W-0002S0-QB for pgsql-bugs@postgresql.org; Mon, 07 May 2012 18:52:09 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SRT2W-0001xH-EF for pgsql-bugs@postgresql.org; Mon, 07 May 2012 18:52:08 +0000 Date: Mon, 07 May 2012 18:52:08 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6633: PL/Python build does not honor PYTHON on Mac OS X To: pgsql-bugs@postgresql.org From: clay@daemons.net X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/37 X-Sequence-Number: 33008 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 =3D yes override python_libspec =3D -framework Python override python_additional_libs =3D 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."