blob: 31b38cddada225ae2ae7577494681a56b3768f58 (
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=0.12.0
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 /usr/bin/python3 setup.py build
16 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
17 }
|