Hi 1003573 (2022.01.11_18:40:48_-0400)
> Patches for setuptools and python-setuptools attached.

The setuptools wheel isn't compatible with Py2, so it shoudn't be marked
universal.

V2 patch attached.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272
diff --git a/debian/changelog b/debian/changelog
index 461fdbd..0ce9b6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+setuptools (58.2.0-2) UNRELEASED; urgency=medium
+
+  * Build a python3-setuptools-whl package. Closes: #1003573.
+
+ -- Stefano Rivera <stefa...@debian.org>  Tue, 11 Jan 2022 11:33:04 -0400
+
 setuptools (58.2.0-1) unstable; urgency=medium
 
   * New upstream version.
diff --git a/debian/control b/debian/control
index 5a1880a..5463fd1 100644
--- a/debian/control
+++ b/debian/control
@@ -48,6 +48,17 @@ Suggests: python-setuptools-doc
 Description: Python3 Distutils Enhancements
  Extensions to the python-distutils for large or complex distributions.
 
+Package: python3-setuptools-whl
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: python-pip-whl (<< 21.3.1+dfsg-2~)
+Replaces: python-pip-whl (<< 21.3.1+dfsg-2~)
+Description: Python Distutils Enhancements (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 virtual environment.
+
 #Package: pypy-pkg-resources
 #Suggests: pypy-setuptools
 #Architecture: all
@@ -72,11 +83,3 @@ Description: Python3 Distutils Enhancements
 #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.
diff --git a/debian/rules b/debian/rules
index 2d23d06..c55efdb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,9 +10,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/python3-setuptools-whl/usr/share/python-wheels
+	python3 setup.py bdist_wheel \
+	        -d debian/python3-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