Your message dated Thu, 21 May 2015 22:23:27 +0000 with message-id <[email protected]> and subject line Bug#786446: fixed in python-setuptools 16.0-2 has caused the Debian Bug report #786446, regarding python-setuptools: syntax error in multiarch patch, causes failure with newer 'pip wheel' 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.) -- 786446: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786446 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python-setuptools Version: 16.0-1 Severity: normal I know setuptools/pip/etc are in flux, so this may be premature. To work around bugs in the (older) version of Pip that sid currently has (#786440), I uninstalled python-pip and python-wheel, and installed the current pip directly from source. Then I attempted to build a wheel for one package ('pip wheel zope.interface'). I got an error from the system-installed setuptools: File "/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 129, in pf if new_suffix and self.multiarch and dst.endswith(ext_suffix) and not dst.endswith(new_suffix): NameError: free variable 'new_suffix' referenced before assignment in enclosing scope It appears that the debian-specific patching of install_lib.py (from debian/patches/multiarch-extname.diff) has a bug: @@ -97,12 +112,24 @@ class install_lib(orig.install_lib): outfiles = [] + if self.multiarch: + import sysconfig + ext_suffix = sysconfig.get_config_var ('EXT_SUFFIX') + if ext_suffix.endswith(_multiarch + ext_suffix[-3:]): + new_suffix = None + else: + new_suffix = "%s-%s%s" % (ext_suffix[:-3], self.multiarch, ext_suffix[-3:]) + def pf(src, dst): if dst in exclude: log.warn("Skipping installation of %s (namespace package)", dst) return False + if new_suffix and self.multiarch and dst.endswith(ext_suffix) and not dst.endswith(new_suffix): + dst = dst.replace(ext_suffix, new_suffix) + log.info("renaming extension to %s", os.path.basename(dst)) + If self.multiarch is ever False, then the 'if new_suffix..' line inside pf() will reference the non-existent 'new_suffix'. I'd suggest swapping the conditions in that line: if self.multiarch and new_suffix and ... so that the test will be short-circuited in the non-multiarch case. Patching it this way seems to allow me to build wheels again. Steps To Reproduce: dpkg --purge python-pip python-wheel apt-get install python-setuptools curl https://bootstrap.pypa.io/get-pip.py | sudo python pip wheel zope.interface Expected: a zope.interface .whl file in the current directory Got Instead: the exception described above cheers, -Brian -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages python-setuptools depends on: ii python-pkg-resources 16.0-1 pn python:any <none> python-setuptools recommends no packages. python-setuptools suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: python-setuptools Source-Version: 16.0-2 We believe that the bug you reported is fixed in the latest version of python-setuptools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthias Klose <[email protected]> (supplier of updated python-setuptools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Thu, 21 May 2015 23:43:05 +0200 Source: python-setuptools Binary: python-pkg-resources python-setuptools python-setuptools-doc python3-pkg-resources python3-setuptools python-setuptools-whl Architecture: source all Version: 16.0-2 Distribution: unstable Urgency: medium Maintainer: Matthias Klose <[email protected]> Changed-By: Matthias Klose <[email protected]> Description: python-pkg-resources - Package Discovery and Resource Access using pkg_resources python-setuptools - Python Distutils Enhancements python-setuptools-doc - Python Distutils Enhancements (documentation) python-setuptools-whl - Python Distutils Enhancements (wheel package) python3-pkg-resources - Package Discovery and Resource Access using pkg_resources python3-setuptools - Python3 Distutils Enhancements Closes: 786446 Changes: python-setuptools (16.0-2) unstable; urgency=medium . * Fix syntax error in multiarch patch (Brian Warner). Closes: #786446. Checksums-Sha1: 0ae35c4eba994a8b69f6aabc5e247246f504f5d7 2282 python-setuptools_16.0-2.dsc 9956887d1f6f5cccc501b9aa6902a86fe74696d6 13588 python-setuptools_16.0-2.debian.tar.xz be22022fab22ce1ec7a39be78ccbd87b75217d42 73088 python-pkg-resources_16.0-2_all.deb 2da0e8170bdce989fce4d713b8644f140cf4711e 202456 python-setuptools-doc_16.0-2_all.deb c47accef3acbaf309d5ce17a21eb4daec498611f 168770 python-setuptools-whl_16.0-2_all.deb 2a7b090b6a74c431c0809d13a2b901b75326fb1d 205922 python-setuptools_16.0-2_all.deb 274fb231e2d7ca6dd48f99fa10d3ce03192e48de 43620 python3-pkg-resources_16.0-2_all.deb caad1bf35d0229a88d74a212cc65c4ae5146bd37 92710 python3-setuptools_16.0-2_all.deb Checksums-Sha256: 23f436922ce16e5cf072616f64c7e9d299deadbd8ec6d0f135072a4c56062421 2282 python-setuptools_16.0-2.dsc b96aac11a45a22245d7142c1fd08ca029dd2980bf14fbafdb060e60430bc3307 13588 python-setuptools_16.0-2.debian.tar.xz 7153c3578eb04a3d1c7cc0a136e2ee6c5fcea3ece634e7bfb304e9e31ff07aa7 73088 python-pkg-resources_16.0-2_all.deb 5ff1a780ded25693d010f827258f2c856c8bf98f6dc20bebeb8b04cdd9dcdff3 202456 python-setuptools-doc_16.0-2_all.deb c1b60854206bee739825ea5baf16dd4c5ad033e8b54553649691cbfb6e0744b5 168770 python-setuptools-whl_16.0-2_all.deb 87fc7f22318163b208b92e5812211e8d46ef3df7460323829ff4717b581a82c9 205922 python-setuptools_16.0-2_all.deb 8a9b68f74345d0c0c9369054d493a4b91429f6b6b40a7594b05c844ce4056df1 43620 python3-pkg-resources_16.0-2_all.deb 96c36523f3bd828d2a749c6f7639f581861eb8458cc4362521ac43029e3d0053 92710 python3-setuptools_16.0-2_all.deb Files: 5b559c1664ba81e75c54288362b4179d 2282 python optional python-setuptools_16.0-2.dsc 5c9d07c0759bc4fe5a535581cb78374a 13588 python optional python-setuptools_16.0-2.debian.tar.xz c07dcc55e8bbd9a1989e0648b8a2219b 73088 python optional python-pkg-resources_16.0-2_all.deb 12986fa59771cae60eb5bbdc859d9e7a 202456 doc optional python-setuptools-doc_16.0-2_all.deb 4f7347bf4f748c15f9d898840c3e2820 168770 python optional python-setuptools-whl_16.0-2_all.deb bb0f0c2d1f2ec107e96a6411b2b5d3dd 205922 python optional python-setuptools_16.0-2_all.deb 97958b0f6cf72363edf1091dd50b48a3 43620 python optional python3-pkg-resources_16.0-2_all.deb ded375d407c67dce83367a10956f790d 92710 python optional python3-setuptools_16.0-2_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVXlK8AAoJEL1+qmB3j6b16IYP/jKOm7pmfzb7o6f2LxlQWVy/ qKi3Tun1pm1JjcV86I798UYg8rAXwqBoYIVz6joa15hadZ53qg8jrE2tU10QeTM6 Jg2SHckZUoWRAuvBYw7nukspT5LULLsaF9M05mwMsr8+btxEucz4v+GWz8R6Rq+r 4n/sey1+ukdRC/X8zW9CDi3WrBbbBH9LZr0X4SomkeCkn8hFHRJN7Vg2gQqO7DAC IkaFG0GxxUiddIJBHz9T1IywRmGsyzm1qEbxwEIbDsISHMAxcZdmnaMLbthWgm0I cTNmDnHTGz2PI3hhMhjEZ04k2HNqxuvS9n7BcbZXi2Xgi+zZFyw5WUXhA+gEZc8r l+t4CZ81uVDN/Krv53IbjtCMRsqKSc8Kqb52aChuEyEo9TWPXTRov5zOkPZDp/PZ cIVBwdt2i8UTt/Y1K0TERLZy+ouHx7xZrKsOYm+3senANuEagnBR/QCKWxCj0mYo fO/ts+MOTWVJD/zQj5FckYo92ZRVI6jIWk/1plvmDVoqCI95YS2WXPxpmleeNfw6 jjlJ8+1y75CvuHMyw0+O7xHryDLB5lBDLmADNUd7KjlszgZa5spsBDCPFJot5tlJ ar5DWtR+g1JyhfZ7Sn/GXVWGSX8+4Td8jkyy1kbeltX+hHl9lx/AjOoggTUIH/lb zNGt0cwq+1ZsjhHZSrk2 =k12B -----END PGP SIGNATURE-----
--- End Message ---

