Package: python-setuptools
Version: 0.6.24-1
Severity: normal

When I tried to build a rpm of a project with "python ./setup.py bdist_rpm", 
the process did end by:
NameError: global name 'get_python_version' is not defined
The operation performed correctly if launched by python2.6 instead.

Looking at the faulty file, i.e. 
/usr/lib/python2.7/distutils/command/bdist_rpm.py, the function 
get_python_version()   is indeed called in line 383. The file for python 2.6, 
i.e. /usr/lib/python2.6/distutils/command/bdist_rpm.py does include the import 
'from distutils.sysconfig import get_python_version'... but surprisingly does 
not call get_python_version(). So the solution is probably to add the import 
line in the 2.7 version of bdist_rpm.py (I tried, and it indeeds fix the 
problem), if get_python_version() has to be called.

Raphael



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.4-trunk-rt-amd64 (SMP w/24 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-setuptools depends on:
ii  python                2.7.3-2
ii  python-pkg-resources  0.6.24-1

python-setuptools recommends no packages.

python-setuptools suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to