Package: python3-pip
Version: 20.3.4-4
Severity: important

Dear Maintainer,

python3-pip in unstable currently performs version comparisons 
incorrectly involving Python 3.10 (is it performing a string 
comparison?).  Consider the following examples (Debian package 
python3-pytest is installed.)

Python 3.9 shows the correct behavior:
talbert@debian-unstable:~$ python3.9 -m virtualenv --system-site-packages 
env_3.9
created virtual environment CPython3.9.9.final.0-64 in 109ms
  creator CPython3Posix(dest=/home/talbert/env_3.9, clear=False, 
no_vcs_ignore=False, global=True)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, app_data_dir=/home/talbert/.local/share/virtualenv)
    added seed packages: pip==20.3.4, pkg_resources==0.0.0, setuptools==44.1.1, 
wheel==0.34.2
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
talbert@debian-unstable:~$ source env_3.9/bin/activate
(env_3.9) talbert@debian-unstable:~$ pip install pytest
Requirement already satisfied: pytest in /usr/lib/python3/dist-packages (6.2.5)

Python 3.10 shows the incorrect behavior (typing-extensions is installed 
when it should NOT be):
talbert@debian-unstable:~$ python3.10 -m virtualenv --system-site-packages 
env_3.10
created virtual environment CPython3.10.0.final.0-64 in 101ms
  creator CPython3Posix(dest=/home/talbert/env_3.10, clear=False, 
no_vcs_ignore=False, global=True)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, app_data_dir=/home/talbert/.local/share/virtualenv)
    added seed packages: pip==20.3.4, pkg_resources==0.0.0, setuptools==44.1.1, 
wheel==0.34.2
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
talbert@debian-unstable:~$ source env_3.10/bin/activate
(env_3.10) talbert@debian-unstable:~$ pip install pytest
Requirement already satisfied: pytest in /usr/lib/python3/dist-packages (6.2.5)
Requirement already satisfied: importlib-metadata>=0.12 in 
/usr/lib/python3/dist-packages (from pytest) (4.6.4)
Collecting typing-extensions>=3.6.4
  Using cached typing_extensions-4.0.0-py3-none-any.whl (22 kB)
Installing collected packages: typing-extensions
Successfully installed typing-extensions-4.0.0

See the metadata for importlib-metadata which shows that 
typing-extensions should only be installed for Python < 3.8:
talbert@debian-unstable:~$ cat 
/usr/lib/python3/dist-packages/importlib_metadata-4.6.4.egg-info/requires.txt 

[:python_version < "3.8"]
typing-extensions>=3.6.4

These problems seem to be downstream problems, as if I install the upstream 
version of pip 20.3.4, it behaves correctly.

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

Kernel: Linux 5.15.0-2-amd64 (SMP w/2 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 /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pip depends on:
ii  ca-certificates     20211016
ii  python-pip-whl      20.3.4-4
ii  python3             3.9.8-1
ii  python3-distutils   3.9.9-2
ii  python3-setuptools  59.2.0-1
ii  python3-wheel       0.34.2-1

Versions of packages python3-pip recommends:
ii  build-essential  12.9
ii  python3-dev      3.9.8-1

python3-pip suggests no packages.

-- no debconf information

Reply via email to