[3/4] python3-{pip,wheel}: Properly build packages

Message ID ed7e5e02-a8e9-eb0f-10b6-006f29690f97@ipfire.org
State Dropped
Headers
Series [1/4] python3-wheel: New package |

Commit Message

Peter Müller Dec. 1, 2022, 6:54 p.m. UTC
  Reported-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 python3-pip/python3-pip.nm     | 11 +++++++++--
 python3-wheel/python3-wheel.nm | 10 ++++++++--
 2 files changed, 17 insertions(+), 4 deletions(-)
  

Patch

diff --git a/python3-pip/python3-pip.nm b/python3-pip/python3-pip.nm
index 0a5f03345..fd74909d2 100644
--- a/python3-pip/python3-pip.nm
+++ b/python3-pip/python3-pip.nm
@@ -5,7 +5,7 @@ 
 
 name       = python3-pip
 version    = 22.3.1
-release    = 1
+release    = 3
 arch       = noarch
 thisapp    = pip-%{version}
 
@@ -37,10 +37,17 @@  build
 	end
 
 	install
-		%{python3} setup.py install
+		%{python3} setup.py install --root=%{BUILDROOT}
 	end
 end
 
 packages
 	package %{name}
+		requires
+			python3
+			python3-setuptools
+			python3-wheel
+		end
+
+	end
 end
diff --git a/python3-wheel/python3-wheel.nm b/python3-wheel/python3-wheel.nm
index ff7ef8e6d..3fe9fe2a1 100644
--- a/python3-wheel/python3-wheel.nm
+++ b/python3-wheel/python3-wheel.nm
@@ -5,7 +5,7 @@ 
 
 name       = python3-wheel
 version    = 0.38.4
-release    = 1
+release    = 3
 arch       = noarch
 thisapp    = wheel-%{version}
 
@@ -28,15 +28,21 @@  build
 		python3-setuptools
 	end
 
+	export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES = 0
+
 	build
 		%{python3} setup.py build
 	end
 
 	install
-		%{python3} setup.py install
+		%{python3} setup.py install --root=%{BUILDROOT}
 	end
 end
 
 packages
 	package %{name}
+
+	requires
+		python3
+	end
 end