From owner-freebsd-python@FreeBSD.ORG Mon Jan 12 12:23:39 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AFF016A4D6 for ; Mon, 12 Jan 2004 12:23:39 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4CBD43D69 for ; Mon, 12 Jan 2004 12:23:08 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 84941486FE for ; Mon, 12 Jan 2004 15:23:08 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 87C77BD48; Mon, 12 Jan 2004 15:23:06 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Mon, 12 Jan 2004 14:45:46 -0500 User-Agent: KMail/1.5.94 X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200401121445.46756.x@Vex.Net> Subject: psycopg and python 2.1 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 20:23:39 -0000 Next py21 problem (obviously building this stuff for zope... sigh)... if you try to set the environment PYTHON_VERSION=python2.1 the py-psycopg port will not build... this is because it uses PYTHON_VERSION variable for its own purposes, and it screws up the paths used in configure. Work around is to use -D PYTHON_VERSION=python2.1 on the make command line. It seems to me that the bsd.python.mk file shouldn't use quite so generic looking environment variables, or they are bound to clash with some software build environments as they have here eventually. If something like FREEBSD_PY_VER (just pulling that out of the air) was used, it would likely never clash with anything not FREEBSD specific. This isn't a huge issue as the work around is easy above... and hopefully the need for python 2.1 dies soon (as it will for me with Zope 2.7)... so i don't want to PR it... but just thought i'd raise the issue of clashing environment variables on this list in case anyone wants to think about it... -- Tim Middleton | Cain Gang Ltd | "Who is Ungit?" said he, still holding x@veX.net | www.Vex.Net | my hands. --C.S.Lewis (TWHF)