Your message dated Wed, 30 Nov 2022 18:10:05 +0000
with message-id <[email protected]>
and subject line Bug#938168: Removed package(s) from unstable
has caused the Debian Bug report #683302,
regarding python-setuptools: Building a rpm gives "NameError: global name 
'get_python_version' is not defined"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
683302: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683302
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Version: 44.1.1-1.2+rm

Dear submitter,

as the package python-setuptools has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/938168

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to