From owner-freebsd-python@FreeBSD.ORG Tue Sep 17 08:49:55 2013 Return-Path: Delivered-To: python@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 E62104FD; Tue, 17 Sep 2013 08:49:54 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bk0-x22e.google.com (mail-bk0-x22e.google.com [IPv6:2a00:1450:4008:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 067CB25F8; Tue, 17 Sep 2013 08:49:53 +0000 (UTC) Received: by mail-bk0-f46.google.com with SMTP id 6so1953227bkj.19 for ; Tue, 17 Sep 2013 01:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=7LxWgUfyCUS3+E6IAG/7J96MU2GYsgdgrro8wD+m9Oo=; b=k5TnPJQOp2p7RfrL8001dxFyxT218SJR1uLogyU2LY7mL++vlAF7ywR3YS8ecEPJgS tBogAXpt/9igekXI2AuZ/VWbM8HURIH4lxuYBrrEiBCEMxn/wlmbFEy8SX/aZcKhwvJO FrnXD91ANTjADta1QbeTzvfmABxwO9c63UbsX3g4Y5ItkJWQV6yzgceVB+5hsBLlTzAx IxQatdK3EUr+1lDgakct7WwN1WOtV7JIX1fK6tc8TLhCHvea8miH1RXbK8urYciVF/V7 ro6P4QGaUKBAE88Ez/l2w0C4PfMYMB26jqm7SQR6j8qKLfOdZ45VbN7go3wMhfQLYxI7 +Oiw== X-Received: by 10.204.63.7 with SMTP id z7mr28052087bkh.23.1379407792290; Tue, 17 Sep 2013 01:49:52 -0700 (PDT) Received: from [192.168.0.10] (13.66.91.91.rev.sfr.net. [91.91.66.13]) by mx.google.com with ESMTPSA id zl3sm9377101bkb.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Sep 2013 01:49:51 -0700 (PDT) Message-ID: <523817A5.9000203@gmail.com> Date: Tue, 17 Sep 2013 10:49:41 +0200 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130830 Thunderbird/17.0.8 MIME-Version: 1.0 To: Daniel Braniss Subject: Re: python 2 and 3 modules References: <51F62DAC.3000003@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, koobs@FreeBSD.org, python@FreeBSD.org, freebsd-pkg@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 08:49:55 -0000 On 17.09.2013 08:59, Daniel Braniss wrote: >> 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 > > hi all, > is there any progress? > > Hello, It has been committed, it's now possible to install python 2 and 3 interpreter without checking for which repository it has been compiled :-). However there is bug in pkgng that does not allow to install a python 2 and python 3 module because it relies on the origin which is devel/py-foo and not the port name py27-foo | py33-foo. I've posted an issue on the FreeBSD pkgng github repository [1]. Also, know I would like to get in touch to the ruby team so they do the exact wrapper of the ruby interpreters :-). [1] https://github.com/freebsd/pkg/issues/582 Regards,