Your message dated Sat, 09 May 2020 07:03:59 +0000
with message-id <[email protected]>
and subject line Bug#959997: fixed in python-pip 20.1-2
has caused the Debian Bug report #959997,
regarding python-pip-whl: pip incorrectly tries to build wheels in virtualenvs 
without wheel package
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.)


-- 
959997: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959997
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-pip-whl
Version: 20.1-1
Severity: normal

This is a resubmission of #917006 and #884353 with more color. I believe
this is a Debian-specific problem, despite what the resolution of
#884353 claims.

Steps to reproduce:

$ python3 -m venv venv
$ venv/bin/pip install future
...
  Building wheel for future (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /venv/bin/python3 -u -c 'import sys, setuptools, tokenize; 
sys.argv[0] = '"'"'/tmp/pip-install-dosvesc9/future/setup.py'"'"'; 
__file__='"'"'/tmp/pip-install-dosvesc9/future/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
bdist_wheel -d /tmp/pip-wheel-tkrzl6ct
       cwd: /tmp/pip-install-dosvesc9/future/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for future
  Running setup.py clean for future
Failed to build future
Installing collected packages: future
    Running setup.py install for future ... done
Successfully installed future-0.18.2

The though the package is still installed, the bdist_wheel failure is
loud and rendered in red, and makes it look as though the operation has
failed.

The problem, as described in #884353, is that `import wheel` works in
pip's context (from <venv>/share/python-wheels), but the wheel module is
not on sys.path when pip invokes `venv/bin/python setup.py bdist_wheel`.

Note that upstream pip handles the situation correctly by only trying to
invoke `bdist_wheel` if `import wheel` succeeds

    
https://github.com/pypa/pip/blob/ea9cb06c49c0f5dddf5c00e6770ebd5228e851e1/src/pip/_internal/utils/misc.py#L892-L901

but Debian patches make this check invalid.

This also reproduces with the example from #884353, which uses
`virtualenv --no-wheel` instead of `python -m venv`:

$ virtualenv --no-wheel venv
$ venv/bin/pip install future
...

The outcome and root cause are the same.

The fix is likely to stop packaging wheel.whl with python-pip-whl. As
far as I can tell, its only effect is to make this test wrong. The wheel
module seems never to be used by pip outside of the test. Users who want
to build wheels with pip will need to install the python3-wheel package
anyway (or `pip install wheel` inside of a venv.)

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-28-generic (SMP w/64 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages python-pip-whl depends on:
ii  ca-certificates  20190110

python-pip-whl recommends no packages.

python-pip-whl suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: python-pip
Source-Version: 20.1-2
Done: Stefano Rivera <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-pip, 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.
Stefano Rivera <[email protected]> (supplier of updated python-pip 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: SHA512

Format: 1.8
Date: Fri, 08 May 2020 23:16:13 -0700
Source: python-pip
Architecture: source
Version: 20.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Closes: 959997
Changes:
 python-pip (20.1-2) unstable; urgency=medium
 .
   [ Stefano Rivera ]
   * Team Upload.
 .
   [ Scott Kitterman ]
   * Update debundle.patch so pypy uses base_prefix as well
   * Update README.debian so it is no longer three releases out of date
   * Add debian/patches/wheel-and-pip-not-pip-wheels.patch to keep the wheel
     and pip wheels we install in /usr/share/python-wheels from fooling pip
     into thinking things are available that are not (Closes: #959997)
Checksums-Sha1:
 f8e2acec13a23dc9a2774f66c6fb5a8a4efb2232 2386 python-pip_20.1-2.dsc
 1b3631a63f4dae4eb554c5563409081b7d833077 19276 python-pip_20.1-2.debian.tar.xz
 e643558d3c371afa6dfacadd43d9f0c7ec9b4bbe 6967 
python-pip_20.1-2_source.buildinfo
Checksums-Sha256:
 d0bd9d8c7d66ee3e4f70051dce9a0bfe5d885e9104ba81c0fcadf381a97a96c6 2386 
python-pip_20.1-2.dsc
 a8c429e9c5ddcb9be97dee554ce22ffaf7d143611cfeac97e2385d1f8e4364b5 19276 
python-pip_20.1-2.debian.tar.xz
 9cec0f640962b212ecc833786de26e7be2f2125155e922e47a3f745ca728a9b3 6967 
python-pip_20.1-2_source.buildinfo
Files:
 620e77a6a00ed4ff2fd07d1d51edf3ab 2386 python optional python-pip_20.1-2.dsc
 ebafe2884f7d2e698621a994eef9f93f 19276 python optional 
python-pip_20.1-2.debian.tar.xz
 1a56ebf242ae221b955593834f3d0ecd 6967 python optional 
python-pip_20.1-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTumtb5BSD6EfafSCRHew2wJjpU2AUCXrZQ3QAKCRBHew2wJjpU
2AE7AP9HmPbwbPLpLaDF2pMov+pP8VJPO8aONpLCADQB9FjNmgEAza4SdspLMWWU
AHe4MlPBzsyibq64g4C7/LDMOJNn8ww=
=O879
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to