Switch away from pip3 for module installation and add license

This commit is contained in:
2025-05-12 15:02:35 +03:00
parent 8653946d6e
commit 94d62918e4
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
name: python-setuptools name: python-setuptools
description: Easily download, build, install, upgrade, and uninstall Python packages description: Easily download, build, install, upgrade, and uninstall Python packages
version: 69.1.0 version: 69.1.0
revision: 3 revision: 4
url: https://pypi.org/project/setuptools/ url: https://pypi.org/project/setuptools/
license: MIT license: MIT
architecture: any architecture: any
depends: ["python3","python-wheel"] depends: ["python3"]
type: source type: source
+3 -2
View File
@@ -15,13 +15,14 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD python3 setup.py build
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
pip3 install --root="$BPM_OUTPUT" --ignore-installed --no-index --find-links dist setuptools python3 setup.py install --root="$BPM_OUTPUT" --prefix=/usr
# Install package license
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-setuptools/LICENSE install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-setuptools/LICENSE
} }