2021-03-07 13:26:40 +11:00
|
|
|
# Description: Compile and distribute Python extensions written in rust as easily as if they were written in C.
|
|
|
|
# URL: https://github.com/PyO3/setuptools-rust
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-03-08 13:35:43 +11:00
|
|
|
# Depends on: python3-semantic-version python3-setuptools-scm python3-toml python3-wheel rust
|
2021-03-07 13:26:40 +11:00
|
|
|
|
|
|
|
name=python3-setuptools-rust
|
2022-08-20 18:29:56 +02:00
|
|
|
version=1.5.1
|
2021-03-07 13:26:40 +11:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/PyO3/setuptools-rust/archive/v$version/python-setuptools-rust-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$version
|
|
|
|
|
|
|
|
cd setuptools-rust-$version
|
2022-07-10 17:44:40 +02:00
|
|
|
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
2021-03-07 13:26:40 +11:00
|
|
|
}
|