Switch away from pip3 for module installation and add license

This commit is contained in:
2025-05-12 14:55:53 +03:00
parent 80fbf9b668
commit 174ea2eef5
2 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -15,11 +15,14 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
python3 -m build --wheel --no-isolation .
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
pip3 install --root="$BPM_OUTPUT" --ignore-installed --no-index --no-user --find-links dist Markupsafe
python3 -m installer --destdir "$BPM_OUTPUT" dist/*.whl
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE.rst "$BPM_OUTPUT"/usr/share/licenses/python-markupsafe/LICENSE.rst
}