[Distutils] trouble building setuptools on centos 3.8

Mathieu Jobin somekool at gmail.com
Tue Mar 2 20:52:24 CET 2010


maybe you can help me. there is something wrong with building this rpm
package ?

maybe because I am running ....

Python 2.2.3 (#1, May  1 2006, 12:33:49)

-rwxrwxr-x pje/pje         277 2006-09-20 17:05:03
setuptools-0.6c11/setuptools/command/register.py
-rw-rw-r-- pje/pje        4442 2008-02-15 12:29:24
setuptools-0.6c11/setuptools/command/test.py
-rwxrwxr-x pje/pje       28275 2009-10-19 13:35:44
setuptools-0.6c11/setuptools/package_index.py
-rwxrwxr-x pje/pje        7168 2009-10-19 17:18:57
setuptools-0.6c11/setuptools/gui.exe
+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd setuptools-0.6c11

++ /usr/bin/id -u

+ '[' 0 = 0 ']'

+ /bin/chown -Rhf root .

++ /usr/bin/id -u

+ '[' 0 = 0 ']'

+ /bin/chgrp -Rhf root .

+ /bin/chmod -Rf a+rX,g-w,o-w .

+ exit 0

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.92516

+ umask 022

+ cd /usr/src/redhat/BUILD

+ cd setuptools-0.6c11

+ python setup.py build

setuptools/dist.py:661: Warning: 'yield' will become a reserved keyword in
the future
Traceback (most recent call last):

  File "setup.py", line 12, in ?

    from setuptools import setup, find_packages

  File "setuptools/__init__.py", line 2, in ?

    from setuptools.extension import Extension, Library

  File "setuptools/extension.py", line 2, in ?

    from dist import _get_unpatched

  File "setuptools/dist.py", line 661

    yield pkg

            ^

SyntaxError: invalid syntax

error: Bad exit status from /var/tmp/rpm-tmp.92516 (%build)



RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.92516 (%build)
Failed to build package setuptools.spec.
[root at qcsmbs1004 SPECS]#

any idea ?

thanks

-- 
Go is to Western chess what philosophy is to double entry accounting.
- From Shibumi, bestseller by Trevanian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100302/3e05b5fc/attachment.html>


More information about the Distutils-SIG mailing list