Fix dependencies, remove check function and add license

This commit is contained in:
2025-05-12 14:26:47 +03:00
parent 56481aba8e
commit 319fc50cde
2 changed files with 6 additions and 10 deletions
+5 -8
View File
@@ -15,17 +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
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
make check
python3 -m flit_core.wheel
}
# 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 flit_core
python3 bootstrap_install.py --install-root "$BPM_OUTPUT" dist/flit_core-"$BPM_PKG_VERSION"-py3-none-any.whl
# Install package license
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-flit-core/LICENSE
}