Install Python-2.1.3 problem

Tim Golden tim.golden at viacom-outdoor.co.uk
Thu Mar 20 03:43:19 EST 2003


This looks like the Redhat python business: I think that RH72 
comes with Python 1.5.2. This means that when you type "python setup.py ..."
you're running a version of python which doesn't understand list
comprehensions
(that the [ext for ext...] stuff) which weren't introduced until python 2.x.
Haven't
got the download myself, but probably a "./configure && make && make
install" would
do the business as effectively as a a "python setup.py".

Alternatively, get an appropriate Python RPM (source or binary) and install
that.

TJG

-----Original Message-----
From: Brett Kelly [mailto:bkelly at sourcereview.net]
Sent: 20 March 2003 08:11
To: python-list at python.org
Subject: Re: Install Python-2.1.3 problem


On Wed, 19 Mar 2003 23:36:22 -0800, Albert wrote:

> I download the open source Python-2.1.3 from Python home page. My
> platform is RedHat 7.2 .After uncompress, I type " python setup
> install" The following word displayed :
> File "setup.py", line 57
> extlist = [ext for ext in extlist if ext.name == modname]
> ^
> SyntaxError : invalid syntax
> 
> how to solve it?

You might consider getting the current stable version of python (2.2)

-- 
Brett Kelly
bkelly at sourcereview.net
http://inkedmn.homelinux.org


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________





More information about the Python-list mailing list