Hi Debian (2022.01.11_18:25:06_-0400)
> 3. Optional new binary packages for Python 2.7:
>    - python-pip-whl from python2-pip.
>    - python-setuptools-whl from python-setuptools.
>      + Including pkg_resources in the setuptools wheel.

Actually, those should probably be python2-pip-whl and
python2-setuptools-whl, to be abundandly clear that they are for 2.7 and
not reuse the python-pip-whl package name.

Updated python-setuptools patch attached.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272
diff --git a/debian/changelog b/debian/changelog
index f099d10..b1b8e7a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-setuptools (44.1.1-2) UNRELEASED; urgency=medium
+
+  * Build a python2-setuptools-whl package. Closes: #1003573.
+
+ -- Stefano Rivera <stefa...@debian.org>  Tue, 11 Jan 2022 14:59:28 -0400
+
 python-setuptools (44.1.1-1) unstable; urgency=medium
 
   * New upstream version.
diff --git a/debian/control b/debian/control
index d9a0e9b..22da21e 100644
--- a/debian/control
+++ b/debian/control
@@ -65,10 +65,13 @@ Suggests: python-setuptools-doc
 Description: PyPy Distutils Enhancements
  Extensions to the python-distutils for large or complex distributions.
 
-#Package: python-setuptools-whl
-#Architecture: all
-#Depends: ${misc:Depends}
-#Description: Python Distutils Enhancements (wheel package)
-# Extensions to the python-distutils for large or complex distributions.
-# .
-# This package provides setuptools in PEP 427 wheel format.
+Package: python2-setuptools-whl
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: python-pip-whl (<< 21)
+Replaces: python-pip-whl (<< 21)
+Description: Python Distutils Enhancements (python 2.7 wheel package)
+ Extensions to the python-distutils for large or complex distributions.
+ .
+ This is the support package for the PEP 427 wheel version of the package,
+ required for using setuptools inside a Python 2.7 virtual environment.
diff --git a/debian/rules b/debian/rules
index 95bcbd0..fb2ded3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,9 +16,9 @@ override_dh_auto_install:
 
 	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
 
-#	mkdir -p debian/python-setuptools-whl/usr/share/python-wheels
-#	python3 setup.py bdist_wheel --universal \
-#	        -d debian/python-setuptools-whl/usr/share/python-wheels
+	mkdir -p debian/python2-setuptools-whl/usr/share/python-wheels
+	python3 setup.py bdist_wheel --universal \
+	        -d debian/python2-setuptools-whl/usr/share/python-wheels
 
 	# dh_pypy from dh-python < 1.20150705-1 falls over requires.txt
 	# and our requires.txt aren't useful

Reply via email to