blob: 3154bff45825a7a5d86745be03d0618f7eceb8d3 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
[ "$1" = python3-setuptools-rust ] || exit 0
python3 - << 'EOF'
import setuptools_rust
assert setuptools_rust.__version__, "setuptools_rust version is empty"
from setuptools_rust import RustExtension, RustBin, Binding
ext = RustExtension("mymod", binding=Binding.PyO3)
assert ext.name == "mymod"
EOF
|