Date: Mon, 5 Mar 2007 21:36:23 +0900 From: Hye-Shik Chang <perky@FreeBSD.org> To: python@FreeBSD.org Subject: New patch to upgrade python to 2.5 Message-ID: <20070305123623.GA41027@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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. Changes and notes for the patch: * lang/python depends on lang/python25 by default. * None of lang/python(ver) installs ${PREFIX}/bin/python but lang/python holds all executable files as symlinks to the default version's. * The user can choose her default python version that serves as ${PREFIX}/bin/python by putting PYTHON_VERSION=python{ver} in /etc/make.conf. * Even if the user didn't specify PYTHON_VERSION, bsd.python.mk will determine the default python version correctly if ${PREFIX}/bin/python exists. * ${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. * egginfo support is added. PYDISTUTILS_EGGINFO holds a filename of egginfo and it'll be added to plist unless PYDISTUTILS_NOEGGINFO is defined. PYDISTUTILS_PKGNAME and PYDISTUTILS_PKGVERSION is added for the ports which has different name from distutils-side. * 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. Here's a patch for python ports and bsd.python.mk: http://people.freebsd.org/~perky/python25-rev1.diff And a patch for few example ports; py-parsing, py-simplejson and py-zopeInterface. http://people.freebsd.org/~perky/python25-rev1-consumers.diff Thanks Hye-Shik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070305123623.GA41027>