raptorq/py_publish.sh

14 lines
402 B
Bash
Raw Normal View History

#!/bin/bash
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
source $HOME/.cargo/env
2021-01-16 02:54:30 +00:00
pip3 install toml
pip3 install maturin
# 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')