diff --git a/pkg.info b/pkg.info index 8a037e3..75791fc 100644 --- a/pkg.info +++ b/pkg.info @@ -1,16 +1,21 @@ name: python-cython description: Optimising static compiler for the Python programming language and the extended Cython programming language version: 3.2.4 -revision: 1 +revision: 2 url: https://cython.org/ license: Apache-2.0 +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: - glibc - - python3 -make_depends: + - python3=3.14.* - python-setuptools +make_depends: + - python-build + - python-installer + - python-wheel downloads: - url: https://github.com/cython/cython/archive/refs/tags/${BPM_PKG_VERSION/_/-}.tar.gz extract_to: ${BPM_SOURCE} diff --git a/source.sh b/source.sh index 9eb457d..6746602 100644 --- a/source.sh +++ b/source.sh @@ -5,13 +5,14 @@ # The build function is executed in the source directory # This function is used to compile the source code build() { - python3 setup.py build + python -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() { - python3 setup.py install --root="$BPM_OUTPUT" --prefix=/usr + python3 -m installer --destdir="$BPM_OUTPUT" dist/*.whl - install -Dm644 LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/cython/LICENSE.txt + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/cython/LICENSE.txt }