From 319fc50cdeb0874a507e97f408e95e99fd468f7e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 12 May 2025 14:26:47 +0300 Subject: [PATCH] Fix dependencies, remove check function and add license --- pkg.info | 3 +-- source.sh | 13 +++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/pkg.info b/pkg.info index 6d824f4..d7a8656 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,9 @@ name: python-flit-core description: A PEP 517 build backend for packages using Flit version: 3.9.0 -revision: 2 +revision: 3 url: https://pypi.org/project/flit-core/ license: BSD-3-Clause architecture: any depends: ["python3"] -make_depends: ["python3"] type: source diff --git a/source.sh b/source.sh index fa48aeb..272b3a9 100644 --- a/source.sh +++ b/source.sh @@ -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 }