blob: a83be30f84b2ef5a334a40bc68cbf69aaa86107a (
plain)
1 # Description: Compile and distribute Python extensions written in rust as easily as if they were written in C.
2 # URL: https://github.com/PyO3/setuptools-rust
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-semantic-version python3-setuptools-scm python3-toml python3-wheel rust
5
6 name=python3-setuptools-rust
7 version=1.5.2
8 release=1
9 source=(https://github.com/PyO3/setuptools-rust/archive/v$version/python-setuptools-rust-$version.tar.gz)
10
11 build() {
12 export SETUPTOOLS_SCM_PRETEND_VERSION=$version
13
14 cd setuptools-rust-$version
15
16 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
17 /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
18 }
|