From owner-freebsd-python@FreeBSD.ORG Tue Mar 6 06:26:53 2007 Return-Path: X-Original-To: python@FreeBSD.org Delivered-To: freebsd-python@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B8EC16A405; Tue, 6 Mar 2007 06:26:53 +0000 (UTC) (envelope-from perky@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E546513C48D; Tue, 6 Mar 2007 06:26:52 +0000 (UTC) (envelope-from perky@FreeBSD.org) Received: from freefall.freebsd.org (perky@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l266Qql8014679; Tue, 6 Mar 2007 06:26:52 GMT (envelope-from perky@freefall.freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l266Qq5F014678; Tue, 6 Mar 2007 06:26:52 GMT (envelope-from perky) Date: Tue, 6 Mar 2007 15:26:49 +0900 From: Hye-Shik Chang To: Alexander Botero-Lowry Message-ID: <20070306062649.GA62573@FreeBSD.org> References: <20070305123623.GA41027@FreeBSD.org> <20070305202257.8C9CE3A875@cherenkov.geekfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070305202257.8C9CE3A875@cherenkov.geekfire.com> User-Agent: Mutt/1.4.2.2i X-Accept-Language: ko, en Cc: python@FreeBSD.org Subject: Re: New patch to upgrade python to 2.5 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: Tue, 06 Mar 2007 06:26:53 -0000 On Mon, Mar 05, 2007 at 12:25:59PM -0800, Alexander Botero-Lowry wrote: > > Hi guys > > > > Sorry for my late response to the recent python problems. > > I just prepared a patch to switch default version to 2.5. The patch > > also includes a fix for 2.5 migration problems related to egginfo > > and setuptools. > Yay! I've been waiting for you to show up to work this out, been afraid > to go at it all on my own. Thanks for the patience and efforts for the past months. :-) > > > > * ${PREFIX}/bin/python may not be available even though a consumer > > port used USE_PYTHON. It'll be need to use the filename including > > python version (eg. python2.5) in scripts or shebang lines. > > ${PYTHON_CMD} is provided by bsd.python.mk for this purpose. > > > I think in all honesty we need to have something linked to > $LOCALBASE/bin/python always. There are too many situations where people > might have non ports managed stuff installed that has a shebang for a > simple python binary, and even cases where python is invoked more directly > that cause issues. I see this is also causing a problem for committers and > submitters that have to patch or sed _every_ shebang line in existence > instead of just getting a simple solution to the problem. Okay. I found the way adopted by ruby ports would be also useful for python ports. I'll try to implement a similar system soon. > > * setuptools support is added. USE_PYDISTUTILS=easy_install > > invokes setuptools installation phases and it'll add setuptools > > registration/unregistration command to plist automatically. When > > the binary package is architecture-dependent, port must define > > PYEASYINSTALL_ARCHDEP to match the egg name. > > > Does this provide a solution for the make -V BLAH_EGG hack that has been > proliferating in ports (where one port depends on an egg of another port > so it has to get the egg name from the other port using make -V. I believe > py-django does this.) Can't py-django use a versioned dependency instead? For eg. in py-twistedCore: BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zopeInterface>=3.3.0_1:${PORTSDIR}/devel/py-zopeInterface I think the most usecases of the hack can go away using that way. Hye-Shik