From owner-freebsd-python@FreeBSD.ORG  Wed Jan  7 21:35:51 2009
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A503A1065730
	for <freebsd-python@freebsd.org>; Wed,  7 Jan 2009 21:35:51 +0000 (UTC)
	(envelope-from cpghost@cordula.ws)
Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42])
	by mx1.freebsd.org (Postfix) with ESMTP id 34FDD8FC26
	for <freebsd-python@freebsd.org>; Wed,  7 Jan 2009 21:35:51 +0000 (UTC)
	(envelope-from cpghost@cordula.ws)
Received: from phenom.cordula.ws (phenom [192.168.254.60])
	by fw.farid-hajji.net (Postfix) with ESMTP id 3367F36A7E;
	Wed,  7 Jan 2009 22:35:49 +0100 (CET)
Date: Wed, 7 Jan 2009 22:35:49 +0100
From: cpghost <cpghost@cordula.ws>
To: Gerhard Schmidt <estartu@ze.tum.de>
Message-ID: <20090107213549.GB2517@phenom.cordula.ws>
References: <4964A7F0.7030304@ze.tum.de>
	<20090107213124.GA2517@phenom.cordula.ws>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090107213124.GA2517@phenom.cordula.ws>
User-Agent: Mutt/1.5.18 (2008-05-17)
Cc: freebsd-python@freebsd.org
Subject: Re: Multiple Python versions
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, 
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2009 21:35:52 -0000

On Wed, Jan 07, 2009 at 10:31:24PM +0100, cpghost wrote:
> On Wed, Jan 07, 2009 at 02:02:40PM +0100, Gerhard Schmidt wrote:
> > Hi,
> > 
> > I've two python versions running on my workstation. Python2.4 for Zope and
> > Python2.5 because even some X11 components need python2.5 these days.
> > 
> > when i try to install some python packages in bot versions via ports i get
> > this error message.
> > 
> > ===>  Installing for py25-dbus-0.83.0_1
> > ===>   py25-dbus-0.83.0_1 depends on file: /usr/local/bin/python2.5 - found
> > ===>   Generating temporary packing list
> > ===>  Checking if devel/py-dbus already installed
> > ===>   An older version of devel/py-dbus is already installed
> > (py24-dbus-0.83.0_1)
> >       You may wish to ``make deinstall'' and install this port again
> >       by ``make reinstall'' to upgrade it properly.
> >       If you really wish to overwrite the old port of devel/py-dbus
> >       without deleting it first, set the variable "FORCE_PKG_REGISTER"
> >       in your environment or the "make install" command line.
> > 
> > Wasn't the version prefix to allow a port being installed in two different
> > Python Version.
> > 
> > Any way to get this working without having to force the installation every
> > time.
> 
> You can try this in /etc/make.conf:
> 
> # Global setting
> PYTHON_DEFAULT_VERISON=python2.5
                 ^^^^^^^

sorry, typo. s/VERISON/VERSION/

> # some/py-port requires python2.4 (install py24-... port)
> .if ${.CURDIR:M*/some/py-port}
> PYTHON_DEFAULT_VERSION=python2.4
> .endif
> 
> It's not perfect, because some pyNN-... ports still share some
> files, esp. scripts in /usr/local/bin, etc., but it works for many
> Python ports already. ;)
> 
> > Regards
> > 	Estartu

-- 
Cordula's Web. http://www.cordula.ws/