2024-08-06 23:28:09 +02:00
|
|
|
ROOT_DIR="$(pwd)"
|
|
|
|
WHEEL_DIR="$ROOT_DIR/wheels"
|
|
|
|
|
|
|
|
PYO3_PYTHON="$(pyenv which python)"
|
|
|
|
TARGET_EXT="$($PYO3_PYTHON -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))')"
|
|
|
|
|
|
|
|
maturin build -i "$PYO3_PYTHON" --out "$WHEEL_DIR"
|
2024-08-09 09:13:14 +02:00
|
|
|
|
|
|
|
CODEMPSUBLIME_DIR="../../../codemp-sublime/bindings/"
|
2024-08-20 17:16:36 +02:00
|
|
|
CODEMPTEST_DIR="../../../codemp-python-test/"
|
2024-08-09 09:13:14 +02:00
|
|
|
|
|
|
|
wheels=($WHEEL_DIR/*.whl)
|
|
|
|
for wheel in $wheels; do
|
2024-08-20 17:16:36 +02:00
|
|
|
echo "moving $wheel to $CODEMPSUBLIME_DIR"
|
2024-08-09 09:13:14 +02:00
|
|
|
cp $wheel "$CODEMPSUBLIME_DIR"
|
2024-08-20 17:16:36 +02:00
|
|
|
cp $wheel "$CODEMPTEST_DIR"
|
2024-08-09 09:13:14 +02:00
|
|
|
done
|
2024-08-20 17:16:36 +02:00
|
|
|
|
|
|
|
cd "$CODEMPSUBLIME_DIR"
|
|
|
|
source .venv/bin/activate
|
|
|
|
pip install $wheel --force-reinstall
|
|
|
|
|