Date: Fri, 20 Dec 2002 14:35:31 +0900 From: Hye-Shik Chang <perky@fallin.lv> To: Philip Paeps <philip@paeps.cx> Cc: ports@FreeBSD.ORG Subject: Re: Using different versions of Python? Message-ID: <20021220053531.GA49737@fallin.lv> In-Reply-To: <20021220030654.GH40279@juno.home.paeps.cx> References: <20021220030654.GH40279@juno.home.paeps.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 20, 2002 at 04:06:54AM +0100, Philip Paeps wrote: > How would I tell a port to use a certain version of Python? I would like > palm/plucker to use Python 2.1 instead of 2.2 (it's broken under 2.2, > according what I read on their mailing-list). > > There doesn't appear to be any easy way to tell a port to use a certain > version that I can see. Perhaps I'm overlooking something? > > Thanks for any hints! > > - Philip You can choose a python interpreter for the port by specifying PYTHON_VERSION or PYTHON_CMD. examples) If you want build the port with python2.2: alice(perky):~/ports/irc/py-irclib% make PYTHON_VERSION=python2.2 build ===> Extracting for py22-irclib-0.3.4 >> Checksum OK for python-irclib-0.3.4.tar.gz. ===> py22-irclib-0.3.4 depends on file: /usr/local/bin/python2.2 - found .... For python2.1: alice(perky):~/ports/irc/py-irclib% make PYTHON_VERSION=python2.1 build ===> Extracting for py21-irclib-0.3.4 >> Checksum OK for python-irclib-0.3.4.tar.gz. ===> py21-irclib-0.3.4 depends on file: /home/perky/bin/python2.1 - found .... You can use even python2.3 living in your home directory (in development): alice(perky):~/ports/irc/py-irclib% make PYTHON_CMD=$HOME/bin/python FORCE_PYTHON_VERSION=yes build ===> Extracting for py23-irclib-0.3.4 >> Checksum OK for python-irclib-0.3.4.tar.gz. ===> Patching for py23-irclib-0.3.4 .... > > -- > Philip Paeps Please don't CC me, I am > philip@paeps.cx subscribed to the list. > > BOFH Excuse #261: > The Usenet news is out of date > - Hye-Shik To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021220053531.GA49737>