Your message dated Sat, 15 Jul 2023 20:00:28 +0000
with message-id <[email protected]>
and subject line Re: Bug#1041079: python-pip-whl: python3 venv creates a 
virtual environment with an old version of setuptools
has caused the Debian Bug report #1041079,
regarding python-pip-whl: python3 venv creates a virtual environment with an 
old version of setuptools
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.)


-- 
1041079: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041079
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-pip-whl
Version: 20.3.4-4+deb11u1
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I have been using python3 -m venv --system-site-packages my_venv in several 
distributions and
in all cases the virtual environment contains a minimal python installation 
which uses the
system python with a pip and setuptools package that matches the version of the 
sytem.

However in Debian 11 doing that ends up with a version of setuptools which is 
different and
older than the system one:

$  dpkg -l python3-setuptools
ii  python3-setuptools 52.0.0-4     all          Python3 Distutils Enhancements
$ pip list | grep setuptools
setuptools               52.0.0
$ python3 -m venv --system-site-packages my_venv
$ . ./my_venv/bin/activate
pip list | grep setuptools
setuptools               44.1.1

It seems that this is due to the too-old wheel provided by the python-pip-whl 
package:
$ ls /usr/share/python-wheels/setuptools-44.1.1-py2.py3-none-any.whl

I am not sure whether it is guaranteed to be like that, but my expectation is 
that the pip and setuptools versions int the venv matches the system ones.

Thank you!

-- System Information:
Debian Release: 11.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-23-amd64 (SMP w/32 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

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

python-pip-whl recommends no packages.

python-pip-whl suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi Enrique (2023.07.14_17:25:18_+0000)
> It seems that this is due to the too-old wheel provided by the python-pip-whl 
> package:
> $ ls /usr/share/python-wheels/setuptools-44.1.1-py2.py3-none-any.whl

I'm afraid that this is the expected behaviour, we kept setuptools 44.1
for Python 2.7 compatibility. Our venv code wasn't smart enough to
correctly select the python3-only version, at the time.

Very soon after this version of python-pip, we implemented all of these
changes. So it's different in bookworm.

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272

--- End Message ---

Reply via email to