contrib/python3-setuptools-rust/Pkgfile
2021-03-12 00:11:10 +11:00

18 lines
677 B
Plaintext

# 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
# Depends on: python3-semantic-version python3-setuptools-scm python3-toml python3-wheel rust
name=python3-setuptools-rust
version=0.12.1
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
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
}