From owner-freebsd-ports@FreeBSD.ORG Mon Oct 7 03:21:18 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E7908440; Mon, 7 Oct 2013 03:21:18 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:2:6]) by mx1.freebsd.org (Postfix) with ESMTP id 51C71202A; Mon, 7 Oct 2013 03:21:18 +0000 (UTC) Received: from ppp118-210-127-6.lns20.adl2.internode.on.net (HELO leader.local) ([118.210.127.6]) by ipmail06.adl2.internode.on.net with ESMTP; 07 Oct 2013 13:51:16 +1030 Message-ID: <525228A8.2050202@ShaneWare.Biz> Date: Mon, 07 Oct 2013 13:51:12 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130516 Thunderbird/17.0.6 MIME-Version: 1.0 To: Daamn M , freebsd-ports@freebsd.org, freebsd-python@freebsd.org Subject: Re: Installing ports for different versions of Python References: <20131006104349.GA1367@medusa.sysfault.org> In-Reply-To: <20131006104349.GA1367@medusa.sysfault.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 03:21:19 -0000 On 06/10/2013 21:13, Marcus von Appen wrote: > On, Sat Oct 05, 2013, Daamn M wrote: >> For example: I have installed python 2.7 and then port py-someport. Then I >> installed python 3.3 and set PYTHON_DEFAULT_VERSION to point python 3.3. If >> I try to install port py-someport again I wll get an error message saying >> that an older version is already installed. > > This is a limitation in package handling at the moment. The FreeBSD > ports tree unfortunately uses the origin (e.g. devel/py-someport) to > check, if a port was already installed, instead of e.g. the package name > (e.g. py33-someport, py27-someport, etc.). Personally I went and created my own variations, easy if you want one or two, probably a hassle if you want a lot that constantly get updated. eg to get py-numpy for python3.3 I duplicated py-numpy to py-numpy33 and changed PORTNAME to numpy33 and USE_PYTHON to 3.3 I made a few other adjustments like renaming f2py to f2py33 and a quick replace in the pkg-plist for __PYCACHE__ and 3.3 added to names. So I end up with py27-numpy and py33-numpy33 installed