From owner-freebsd-python@FreeBSD.ORG Mon Jul 29 08:54:12 2013 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 45031CB2; Mon, 29 Jul 2013 08:54:12 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pb0-x231.google.com (mail-pb0-x231.google.com [IPv6:2607:f8b0:400e:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 16CD627C1; Mon, 29 Jul 2013 08:54:12 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id xb4so144454pbc.22 for ; Mon, 29 Jul 2013 01:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=AR8uO9kFLFh0Hyn9nvr2ED2XFkVIYjnXhfgYz3+236I=; b=ShEd6n5WH34Tk7BYYhqatQ6Ph0Bby9/PyufaVBf/Dy7dOxcakKn6Qwvk4SsHl1t1I9 vvWx70YVBIiM1vzMpK3qK/LgnhQeuI5T0Uj630taWG+8XF9zDH3SYEZzswED6z2wQ9Gv tG7ikMx8Gop6eQQgU592YoSOF/ZFj/MyL2RsYZmErlaFoxNTouG1cJHTDrdu0rGsNDCV g6OdshU3+yIJPhnH8aHGkKcHAUlYyka+19NL8IfD0qQGZXIItLkQKQHn0meESAGXZW5t 24+uVjVHXSqggl/WUtrwX4Y43kALmC+9fmvKaqwZMGkT0J1JNpAAd3XK3jSM/Biro79W 6kVg== X-Received: by 10.66.241.34 with SMTP id wf2mr37284098pac.111.1375088051636; Mon, 29 Jul 2013 01:54:11 -0700 (PDT) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id ts6sm23543103pbc.12.2013.07.29.01.54.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 01:54:10 -0700 (PDT) Message-ID: <51F62DAC.3000003@FreeBSD.org> Date: Mon, 29 Jul 2013 18:54:04 +1000 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Thunderbird/23.0 MIME-Version: 1.0 To: David Demelier , Daniel Braniss Subject: Re: python 2 and 3 modules References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, python@FreeBSD.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 08:54:12 -0000 On 29/07/2013 5:46 PM, David Demelier wrote: > 2013/7/28 Daniel Braniss : >> Hi, >> I need to be able to have both (2.7 and 3.2) modules. >> setting PYTHON_VERSION=3.2 in /etc/make.conf compiles properly, >> but make install, insists that that the 2.7 version is installed! >> after deinstalling, it will install the 3.2 version in the correct directory: >> /usr/local/lib/python3.2/site-path >> but now I lost the 2.7 version. >> >> the same happens if I try to install the 2.7 version, it will complain >> that the 3,2 version is installed. >> >> BTW, the comments in ports/Mk/bsd.python.mk are very confusing and >> some are wrong: >> # PYTHON_VERSION - Version of the python binary in your ${PATH}, in the >> # format "python2.0". Set this in your >> makefile in case you >> # want to build extensions with an >> older binary. >> # default: depends on the version of >> your python binary >> >> setting it to "python3.2" produces errors in the make, while 3.2 is ok >> >> is there any fix? >> >> thanks, >> danny >> > > For the moment its pretty difficult to install python 2.7 and 3.3 at > the same time. However, if you plan to install python 3.3, you need to > set PYTHON_DEFAULT_VERSION to "python3.3" and not PYTHON_VERSION. > > Cheers, > David, python@ would love to get a better idea (ideally a list) of where and what the choke-points & hurdles users are coming across trying to achieving this. Id be happy to document these in the wiki as we start looking forward to best-practice FreeBSD/Python packaging for when the setuptools/distribute merge commotion settles down The FreeBSD Python team can be found on FreeNode IRC (#freebsd-python) if anyone wants to get the ball rolling. koobs