-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python package publishing script
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#!/bin/bash | ||
|
||
PYTHON3=/opt/python/cp311-cp311/bin/python3 | ||
|
||
cp -r /raptorq-ro /raptorq | ||
cd /raptorq | ||
yum install -y python3-pip | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.60.0 | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=$(cat ./rust-toolchain) | ||
source $HOME/.cargo/env | ||
|
||
pip3 install toml | ||
pip3 install maturin | ||
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' | ||
|
||
# xargs is just to merge the lines together into a single line | ||
maturin publish --cargo-extra-args="--features python" \ | ||
-i $(ls -1 /opt/python/*/bin/python3 | xargs | sed 's/ / -i /g') | ||
python3 -m maturin publish |