From owner-freebsd-python@FreeBSD.ORG  Thu Jan  8 09:25:20 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 4778F10656E4
	for <freebsd-python@freebsd.org>; Thu,  8 Jan 2009 09:25:20 +0000 (UTC)
	(envelope-from estartu@ze.tum.de)
Received: from w3projmail.ze.tum.de (w3projmail.ze.tum.de [129.187.39.2])
	by mx1.freebsd.org (Postfix) with ESMTP id C87EC8FC23
	for <freebsd-python@freebsd.org>; Thu,  8 Jan 2009 09:25:19 +0000 (UTC)
	(envelope-from estartu@ze.tum.de)
Received: from etustar.ze.tum.de (estartu@etustar.ze.tum.de [129.187.39.96])
	by phobos.ze.tum.de (8.14.2/8.14.1) with ESMTP id n089PHs2049041;
	Thu, 8 Jan 2009 10:25:18 +0100 (CET)
	(envelope-from estartu@ze.tum.de)
Message-ID: <4965C67A.1070802@ze.tum.de>
Date: Thu, 08 Jan 2009 10:25:14 +0100
From: Gerhard Schmidt <estartu@ze.tum.de>
User-Agent: Thunderbird 2.0.0.19 (X11/20090107)
MIME-Version: 1.0
To: cpghost <cpghost@cordula.ws>, freebsd-python@freebsd.org
References: <4964A7F0.7030304@ze.tum.de>
	<20090107213124.GA2517@phenom.cordula.ws>
In-Reply-To: <20090107213124.GA2517@phenom.cordula.ws>
X-Enigmail-Version: 0.95.5
OpenPGP: id=4000A915
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature";
	boundary="------------enig115C6B131A681EE1334C1034"
Cc: 
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: Thu, 08 Jan 2009 09:25:20 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig115C6B131A681EE1334C1034
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

cpghost schrieb:
> 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.
>>
>> =3D=3D=3D>  Installing for py25-dbus-0.83.0_1
>> =3D=3D=3D>   py25-dbus-0.83.0_1 depends on file: /usr/local/bin/python=
2.5 - found
>> =3D=3D=3D>   Generating temporary packing list
>> =3D=3D=3D>  Checking if devel/py-dbus already installed
>> =3D=3D=3D>   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 diffe=
rent
>> Python Version.
>>
>> Any way to get this working without having to force the installation e=
very
>> time.
>=20
> You can try this in /etc/make.conf:
>=20
> # Global setting
> PYTHON_DEFAULT_VERISON=3Dpython2.5
>=20
> # some/py-port requires python2.4 (install py24-... port)
> .if ${.CURDIR:M*/some/py-port}
> PYTHON_DEFAULT_VERSION=3Dpython2.4
> .endif
>=20
> 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. ;)

Thats not my problem. The Problem is that i cant install the same port on=

python2.4 and python2.5 (py-MySQLdb and py-ldap that zope needs and other=

applications need it under python2.5)

shouldn't the already installed test be aware that py24- and py25- can be=

installed at the same time.

It works without problem. I just have to force the installation so
portupgrade doesn't work for these ports properly

Regards
    Estartu


--=20
-------------------------------------------------
Gerhard Schmidt       | E-Mail: schmidt@ze.tum.de
TU-M=FCnchen	      |
WWW & Online Services |
Tel: 089/289-25270    |
Fax: 089/289-25257    | PGP-Publickey auf Anfrage



--------------enig115C6B131A681EE1334C1034
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBSWXGftl1K6RAAKkVAQqSmwf+Jvk1ZR3RBVLQhvsxkhRQC9lGdyhcsit6
Rsg9Eu3g+fP7QbA2rusBktjN5kRX8TeG/jewVbykAFWDbVlvWQOvqMOiCK4SOvd+
VfEmCeJlKRTav2h5eevPMt1KEdUVbAGsUOnPPOL/wwcoky9eXOjXXZ6ow4HOV1CU
b6KQM6XVyZAO4f4vLHIk49GaR8wlOZj5kNNuc+Pg5jl32VzrC1PPFHsGLqbvAVYR
sW3TH7cUOkpf0PBKN6RnGx4pvyvOZZpGxT+HVjASlUMmNcPDPYORRePe7AGCC3PR
L/4/M0VzthQtiWRo/bIg/pHcVa2KrG0PcorWNFr/1/1HzEsOPUE9YA==
=eDkn
-----END PGP SIGNATURE-----

--------------enig115C6B131A681EE1334C1034--