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
|
|
|
|
2024-08-22 16:52:29 +02:00
|
|
|
echo "\nAUTOINSTALL - REMOVE AFTER TESTING\n"
|
|
|
|
|
|
|
|
CODEMPSUBLIME_DIR="../../../codemp-sublime/"
|
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-22 16:52:29 +02:00
|
|
|
cp $wheel "$CODEMPSUBLIME_DIR/bindings/"
|
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
|
|
|
|
2024-08-22 16:52:29 +02:00
|
|
|
pushd "$CODEMPTEST_DIR"
|
2024-08-20 17:16:36 +02:00
|
|
|
source .venv/bin/activate
|
|
|
|
pip install $wheel --force-reinstall
|
2024-08-22 16:52:29 +02:00
|
|
|
deactivate
|
|
|
|
popd
|
2024-08-20 17:16:36 +02:00
|
|
|
|
2024-08-22 16:52:29 +02:00
|
|
|
pushd "$CODEMPSUBLIME_DIR"
|
|
|
|
source .venv/bin/activate
|
|
|
|
pip install $wheel --force-reinstall
|
|
|
|
deactivate
|
|
|
|
popd
|