From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 05:56:28 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8390216A4B3 for ; Thu, 9 Oct 2003 05:56:28 -0700 (PDT) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE7A743FB1 for ; Thu, 9 Oct 2003 05:56:27 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 663BA3AF6; Thu, 9 Oct 2003 08:56:27 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Kirk Strauser References: <874qyl3ygw.fsf@strauser.com> From: Lowell Gilbert Date: 09 Oct 2003 08:56:27 -0400 In-Reply-To: <874qyl3ygw.fsf@strauser.com> Message-ID: <44vfqyefic.fsf@be-well.ilk.org> Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: Handling of multiple Pythons on the same system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 12:56:28 -0000 Kirk Strauser writes: > How do you manage multiple versions of Python on the same machine? > > I'm running Zope on one of my servers and it requires Python 2.1 (and has > known issues with later versions). I want to install other applications > that require Python 2.3. I've installed the lang/python (2.3) and > lang/python21 ports and everything is basically OK. > > Except, now, that I want to use the databases/py-psycopg port with both > versions of Python. Whenever I build the port, I get either: > > py21-psycopg-1.1.7 > > or > > py23-psycopg-1.1.7 > > depending on whether /usr/local/bin/python is a link to python2.1 or > python2.3 at the port's build time. Those packages are mutually exclusive; > they both write some files to the same place, and write other files to > version-specific paths. > > This is quickly becoming a hassle. Is there a good workaround for this > situation? You should talk to the port maintainer about it. The only suggestion I can think of is to set up a second port PREFIX for the ports that depend on the older Python.