2020-03-13 05:51:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-11-25 18:45:23 +00:00
|
|
|
PYTHON3=/opt/python/cp311-cp311/bin/python3
|
|
|
|
|
|
|
|
cp -r /raptorq-ro /raptorq
|
2020-03-13 05:51:29 +00:00
|
|
|
cd /raptorq
|
2023-11-25 18:45:23 +00:00
|
|
|
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=$(cat ./rust-toolchain)
|
2020-03-13 05:51:29 +00:00
|
|
|
source $HOME/.cargo/env
|
|
|
|
|
2023-11-25 18:45:23 +00:00
|
|
|
cd /tmp
|
|
|
|
$PYTHON3 -m venv venv
|
|
|
|
cd /raptorq
|
|
|
|
source /tmp/venv/bin/activate
|
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
python3 -m pip install 'maturin>=1.0,<2.0'
|
2021-01-16 02:54:30 +00:00
|
|
|
|
2023-11-26 19:24:53 +00:00
|
|
|
python3 -m maturin publish --username __token__
|