|
|
|
cd /workdir
|
|
|
|
yum -y install centos-release-scl-rh
|
|
|
|
yum -y install llvm-toolset-7.0
|
|
|
|
source scl_source enable llvm-toolset-7.0
|
|
|
|
curl https://static.rust-lang.org/rustup/dist/%arch%-unknown-linux-gnu/rustup-init --output rustup-init
|
|
|
|
chmod +x rustup-init
|
|
|
|
./rustup-init -y --profile minimal
|
|
|
|
source "$HOME/.cargo/env"
|
|
|
|
export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin"
|
|
|
|
cd python
|
|
|
|
python3.12 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install -r requirements.dev.txt
|
|
|
|
maturin develop --release --no-default-features --features rustls
|
|
|
|
python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff
|
|
|
|
maturin build --release --no-default-features --features abi3 --features rustls --compatibility manylinux2014
|
|
|
|
if [ %for_each_version% ]; then
|
|
|
|
for VERSION in 8 9 10 11 12; do
|
|
|
|
maturin build --release --no-default-features --features rustls --interpreter "python3.$VERSION" --compatibility manylinux2014
|
|
|
|
done
|
|
|
|
for VERSION in 9 10; do
|
|
|
|
maturin build --release --no-default-features --features rustls --interpreter "pypy3.$VERSION" --compatibility manylinux2014
|
|
|
|
done
|
|
|
|
fi
|