From owner-freebsd-python@FreeBSD.ORG Mon Mar 28 01:10:56 2011 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34A94106566C; Mon, 28 Mar 2011 01:10:55 +0000 (UTC) (envelope-from wenheping@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7DD6B8FC0C; Mon, 28 Mar 2011 01:10:55 +0000 (UTC) Received: by iyj12 with SMTP id 12so3878916iyj.13 for ; Sun, 27 Mar 2011 18:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eaZKB2ClWtMN/ITzKdTPgqopz2+HlQBvjJftn43UGEk=; b=AEdy/nv4+CuUrHLY2nMsSID6k5cKdH8hT3fd5d2kuIdm9GaWyDV4eirpqPS+5A7fq3 S4v1rhE/S61WEymrTujgx6ovCKtB7ivCIsvaaJ9zsUuJCLWQgTxHj5Mqg/aJ6V8iy78M k+Z1sga869FxJCnrMMUhHK5TGNTlzf588KFlc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=epU1AhdHt+rWBiGMoLH32L0grwLE48VgDjXYKhdPkbe0R3sogW7TibMcphbbwyweQY V7/8dwUNE9iO8lBeh7IHexfwfvMppLipu8V/xYg4vv/WBSqEYh/Y8zpxqf9P/5o8Ubxf Ce/L2WGf9HtGnoQRzwrQzcVPlidIJtTN2Gm7c= MIME-Version: 1.0 Received: by 10.42.137.198 with SMTP id z6mr5356711ict.261.1301274654619; Sun, 27 Mar 2011 18:10:54 -0700 (PDT) Received: by 10.231.208.73 with HTTP; Sun, 27 Mar 2011 18:10:54 -0700 (PDT) In-Reply-To: <20110327172055.GA24257@FreeBSD.cs.nctu.edu.tw> References: <20110327172055.GA24257@FreeBSD.cs.nctu.edu.tw> Date: Mon, 28 Mar 2011 09:10:54 +0800 Message-ID: From: wen heping To: Li-Wen Hsu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Nicola Vitale , Wen Heping , python@freebsd.org, Martin Wilke Subject: Re: about py3 relate ports X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 01:10:56 -0000 2011/3/28 Li-Wen Hsu : > On Sun, Mar 27, 2011 at 00:52:49 +0800, wen heping wrote: >> Hi, all: >> >> =C2=A0 =C2=A0 After python-2.7 was set as default python version, now it= is the >> time to think >> about python-3.x. >> >> =C2=A0 =C2=A0 Although we set "USE_PYTHON=3Dyes' in python relate ports,= but we know many of >> it could not build with python3, especially those install with >> easy_install since setuptools >> could not build with python3. >> >> =C2=A0 =C2=A0There are two ways to resolve it: >> =C2=A0 =C2=A01 Modify the bsd.python.mk and every python port's Makefile= . >> =C2=A0 =C2=A02 create a new bsd.python3.mk and create new port for those >> python3-enable applications. >> >> =C2=A0 =C2=A0I prefer the second way which is similar to Debian, because= if we >> choose the first way, >> it is a huge work of it, we have to modify bsd.python.mk and modify >> every python relate port's >> Makefile and plist, while the second way is much more simpler. >> >> =C2=A0 =C2=A0I create bsd.python3.mk which is revised from bsd.python.mk= and >> some new python3 ports. >> I attached them all here. >> >> =C2=A0 =C2=A0Any comments ? > > I admit due to my busy day job, I currently have no time to think about > this issue very deeply, here are some thought currently on my mind: > > =C2=A0 =C2=A0How about changing the package manager from setuptools/easy_= install > =C2=A0to use distribute/pip? > > And about the ports fails with Python 3, well, firstly I think it's not > really a big issue, it only happens on the system set Python 3 as default= . > One should know what will happen when setting PYTHON_VERSION in make.conf= . > Keeping USE_PYTHON=3Dyes in the Makefile is acceptable (to me) since when > using Python 3, we should already know some python modules will not work, > and it's not the default setting of ports system, besides, the biggest > thing need to think about would be "how to make this module Python 3 read= y" > After achieve that, USE_PYTHON=3Dyes is perfect. :) I agree this way could resolve the problem, and it is what I mean as first way, but you give more detailed explaintion. But this way require huge work to re-test all the python ports and many modifications. Anyway I think freebsd python group should have to do something to make python3 modules work. We should have a decision, first way ? second way or third way ? Regards, wen > > And for knowing or getting reports about some ports are not Python ready, > I think modifying Makefile to USE_PYTHON=3D2.4-2.7 is OK, since it explic= itly > states this port does not Python 3 compatible. =C2=A0Perhaps we can add a= syntax > like: > > =C2=A0 =C2=A0 USE_PYTHON=3D2.x or USE_PYTHON=3D2 > > However, Python 2.7.x looks like the last releases of Python 2, so we > may not bothering thinking about this. > > Please note this is not conflicting =C2=A0with your 2nd option (entirely)= , I > just don't want to maintain another .mk file. =C2=A0Creating Python 3 por= ts > is fine, which gives us a pre-built binary package on ftp, that's good > and we already have some, like databases/py25-bsddb . =C2=A0The only thin= g > need to take care is setting CONFLICTS in Makefile(s) correctly. =C2=A0So= me > py-* ports install files under bin/, not all in ${PYTHON_SITELIBDIR} > > > Best, > Li-Wen > > -- > Li-Wen Hsu > http://lwhsu.org >