]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
python3-wheel: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Aug 2025 09:34:31 +0000 (09:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:01 +0000 (18:42 +0100)
Required to build wheels (at least sometimes).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/python3-wheel [new file with mode: 0644]
lfs/python3-wheel [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/python3-wheel b/config/rootfiles/common/python3-wheel
new file mode 100644 (file)
index 0000000..14e3f61
--- /dev/null
@@ -0,0 +1,44 @@
+#usr/bin/wheel
+#usr/lib/python3.10/site-packages/wheel
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info/PKG-INFO
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info/SOURCES.txt
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info/dependency_links.txt
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info/entry_points.txt
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info/requires.txt
+#usr/lib/python3.10/site-packages/wheel-0.45.1-py3.10.egg-info/top_level.txt
+#usr/lib/python3.10/site-packages/wheel/__init__.py
+#usr/lib/python3.10/site-packages/wheel/__main__.py
+#usr/lib/python3.10/site-packages/wheel/_bdist_wheel.py
+#usr/lib/python3.10/site-packages/wheel/_setuptools_logging.py
+#usr/lib/python3.10/site-packages/wheel/bdist_wheel.py
+#usr/lib/python3.10/site-packages/wheel/cli
+#usr/lib/python3.10/site-packages/wheel/cli/__init__.py
+#usr/lib/python3.10/site-packages/wheel/cli/convert.py
+#usr/lib/python3.10/site-packages/wheel/cli/pack.py
+#usr/lib/python3.10/site-packages/wheel/cli/tags.py
+#usr/lib/python3.10/site-packages/wheel/cli/unpack.py
+#usr/lib/python3.10/site-packages/wheel/macosx_libfile.py
+#usr/lib/python3.10/site-packages/wheel/metadata.py
+#usr/lib/python3.10/site-packages/wheel/util.py
+#usr/lib/python3.10/site-packages/wheel/vendored
+#usr/lib/python3.10/site-packages/wheel/vendored/__init__.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/LICENSE
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/LICENSE.APACHE
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/LICENSE.BSD
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/__init__.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/_elffile.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/_manylinux.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/_musllinux.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/_parser.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/_structures.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/_tokenizer.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/markers.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/requirements.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/specifiers.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/tags.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/utils.py
+#usr/lib/python3.10/site-packages/wheel/vendored/packaging/version.py
+#usr/lib/python3.10/site-packages/wheel/vendored/vendor.txt
+#usr/lib/python3.10/site-packages/wheel/wheelfile.py
diff --git a/lfs/python3-wheel b/lfs/python3-wheel
new file mode 100644 (file)
index 0000000..8740db0
--- /dev/null
@@ -0,0 +1,79 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2020  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 0.45.1
+
+THISAPP    = wheel-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 13c8d60a2e39ded3d911c9e03915b01bda201f7e8cd6de456484ce6eeb2a990861a01f26e5d9f2ac4ca0ab2b6d0fea9db437d6f82cb39db9b1059c3c53202ec0
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+dist:
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && python3 setup.py build
+       cd $(DIR_APP) && python3 setup.py install --root=/
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index e906fb8ca3704c1c59de22d1bc092c2a67e0cb6d..6aae16a83456a0810ab9c75e24cfbaee8ffcf133 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1484,6 +1484,7 @@ build_system() {
        lfsmake2 gdbm
        lfsmake2 sqlite
        lfsmake2 python3
+       lfsmake2 python3-wheel
        lfsmake2 python3-setuptools
        lfsmake2 ninja
        lfsmake2 meson