File: add_pkg-resources_to_freeze.patch

package info (click to toggle)
python-pip 25.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,048 kB
  • sloc: python: 82,877; sh: 75; makefile: 25
file content (27 lines) | stat: -rw-r--r-- 913 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Scott Kitterman <scott@kitterman.com>
Date: Mon, 20 Apr 2020 10:59:54 -0700
Subject: Include pkg-resources in freeze system wheels

Bug-Debian: https://bugs.debian.org/871790
Origin: vendor
Forwarded: not-needed
Last-Update: 2020-04-04

  * Add pkg-resources to pip freeze 'DEV_PKGS' so this Debian unique system
    wheel does not show up when pip freeze is run (Closes: #871790)
---
 src/pip/_internal/commands/freeze.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pip/_internal/commands/freeze.py b/src/pip/_internal/commands/freeze.py
index 7794857..8c5cdb1 100644
--- a/src/pip/_internal/commands/freeze.py
+++ b/src/pip/_internal/commands/freeze.py
@@ -17,6 +17,7 @@ def _dev_pkgs() -> set[str]:
 
     if _should_suppress_build_backends():
         pkgs |= {"setuptools", "distribute", "wheel"}
+        pkgs |= {"setuptools", "distribute", "wheel", "pkg-resources"}
 
     return pkgs