Debian Bug report logs - #1030335
python3-pip: PEP 668 support breaks --user/--editable

version graph

Package: python3-pip; Maintainer for python3-pip is Debian Python Team <team+python@tracker.debian.org>; Source for python3-pip is src:python-pip (PTS, buildd, popcon).

Reported by: FC Stegerman <flx@obfusk.net>

Date: Fri, 3 Feb 2023 05:36:02 UTC

Severity: important

Found in version python-pip/23.0+dfsg-1

Fixed in version python-pip/23.0+dfsg-2

Done: Stefano Rivera <stefanor@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://github.com/pypa/pip/issues/11776

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, flx@obfusk.net, Debian Python Team <team+python@tracker.debian.org>:
Bug#1030335; Package python3-pip. (Fri, 03 Feb 2023 05:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to FC Stegerman <flx@obfusk.net>:
New Bug report received and forwarded. Copy sent to flx@obfusk.net, Debian Python Team <team+python@tracker.debian.org>. (Fri, 03 Feb 2023 05:36:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: FC Stegerman <flx@obfusk.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python3-pip: PEP 668 support breaks --user/--editable
Date: Fri, 03 Feb 2023 06:33:06 +0100
Package: python3-pip
Version: 23.0+dfsg-1
Severity: important
X-Debbugs-Cc: flx@obfusk.net

Hi!

I just updated python3-pip and was greeted with a NEWS message about
PEP 668 support:

  This version of pip introduces PEP 668 support. Debian's python3.11
  interpreter will soon (>= 3.11.1-3) declare the installation to be
  EXTERNALLY-MANAGED, instructing pip to disallow package installation outside
  virtualenvs.
  
  See: https://peps.python.org/pep-0668/
  
  Practically, this means that you can't use pip to install packages outside a
  virtualenv, on a Debian system, any more.
  
  See /usr/share/doc/python3.11/README.venv for more details.
  If that isn't available yet, check:
  https://salsa.debian.org/cpython-team/python3/-/blob/master/debian/README.venv

Not being able to install packages system-wide seems like a good idea,
I fully support that.

But I often install the Python packages I'm developing under my own
user account with "pip install -e", which is also made impossible by
this change.

And I intentionally do not use virtualenvs for this because I want to
have all dependencies provided by Debian packages, not downloaded from
PyPI.

And as far as I can tell there is not even an option I can give to pip
to tell it to allow me to install to ~/.local anyway.  PEP 668
mentions a --break-system-packages (as an example), but such an option
doesn't seem to actually exist.

- FC



Set Bug forwarded-to-address to 'https://github.com/pypa/pip/issues/11776'. Request was from Stefano Rivera <stefanor@debian.org> to control@bugs.debian.org. (Fri, 03 Feb 2023 14:54:03 GMT) (full text, mbox, link).


Message sent on to FC Stegerman <flx@obfusk.net>:
Bug#1030335. (Sun, 05 Feb 2023 17:06:04 GMT) (full text, mbox, link).


Message #10 received at 1030335-submitter@bugs.debian.org (full text, mbox, reply):

From: Stefano Rivera <stefanor@debian.org>
To: 1030335-submitter@bugs.debian.org
Subject: Bug#1030335 marked as pending in python-pip
Date: Sun, 05 Feb 2023 17:03:54 +0000
Control: tag -1 pending

Hello,

Bug #1030335 in python-pip reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-pip/-/commit/68673ebd85db676cded1fc8a8f34f46bfc4e14d4

------------------------------------------------------------------------
Patch: Implement ``--break-system-packages`` to permit installing packages into EXTERNALLY-MANAGED Python installations. (Closes: #1030335)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1030335



Added tag(s) pending. Request was from Stefano Rivera <stefanor@debian.org> to 1030335-submitter@bugs.debian.org. (Sun, 05 Feb 2023 17:06:04 GMT) (full text, mbox, link).


Reply sent to Stefano Rivera <stefanor@debian.org>:
You have taken responsibility. (Sun, 05 Feb 2023 22:27:06 GMT) (full text, mbox, link).


Notification sent to FC Stegerman <flx@obfusk.net>:
Bug acknowledged by developer. (Sun, 05 Feb 2023 22:27:06 GMT) (full text, mbox, link).


Message #17 received at 1030335-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1030335-close@bugs.debian.org
Subject: Bug#1030335: fixed in python-pip 23.0+dfsg-2
Date: Sun, 05 Feb 2023 22:24:12 +0000
Source: python-pip
Source-Version: 23.0+dfsg-2
Done: Stefano Rivera <stefanor@debian.org>

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 1030335@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 05 Feb 2023 18:07:04 -0400
Source: python-pip
Architecture: source
Version: 23.0+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1030335
Changes:
 python-pip (23.0+dfsg-2) unstable; urgency=medium
 .
   * Patch: Implement ``--break-system-packages`` to permit installing packages
     into EXTERNALLY-MANAGED Python installations. (Closes: #1030335)
   * Use --break-system-packages in our autopkgtests.
   * Bump the NEWS entry, to document --break-system-packages.
Checksums-Sha1:
 a9a4ee2a685fe0054fb8cb45301ae7ea41872169 1679 python-pip_23.0+dfsg-2.dsc
 d6680d7bb4b1db04be3c47a0133bda7eb5a16ca6 23872 python-pip_23.0+dfsg-2.debian.tar.xz
 b37c3eb2317c7ab5703bb1b4e98a356b2b439e0a 6502 python-pip_23.0+dfsg-2_source.buildinfo
Checksums-Sha256:
 c4a5fca41e46bf181944015a3715501bd57bd0c7b41cc59466227b90e94f6228 1679 python-pip_23.0+dfsg-2.dsc
 9dc004063e83a28aa0e3991e811885c87c2e5a9d49f3f1961309f101844a756e 23872 python-pip_23.0+dfsg-2.debian.tar.xz
 5d89c696e908a6d46b58e714c92d6c877d78119baa4cb198b63a36b5871446e0 6502 python-pip_23.0+dfsg-2_source.buildinfo
Files:
 e6a0ab7f9a22fc7dbb54cbffce451a2a 1679 python optional python-pip_23.0+dfsg-2.dsc
 d7c13d17741550f8bb353003d33692bb 23872 python optional python-pip_23.0+dfsg-2.debian.tar.xz
 f8385dd50c555aec5f3380da29468b2f 6502 python optional python-pip_23.0+dfsg-2_source.buildinfo

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

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCY+AotRQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2KhZAP9tsHliBJeSYJ0LTaNVBkprwBd7ZwS/
pwEahW6BSRHYsQEAg/f5AzEKlG4ebpPHrGTdL302ZIWWyTJsSw8JNQYjqg0=
=RcA6
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 09 Mar 2023 07:28:55 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Nov 25 11:53:32 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.