mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 23:34:49 +01:00
22 lines
586 B
Bash
Executable file
22 lines
586 B
Bash
Executable file
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"
|
|
|
|
CODEMPSUBLIME_DIR="../../../codemp-sublime/bindings/"
|
|
CODEMPTEST_DIR="../../../codemp-python-test/"
|
|
|
|
wheels=($WHEEL_DIR/*.whl)
|
|
for wheel in $wheels; do
|
|
echo "moving $wheel to $CODEMPSUBLIME_DIR"
|
|
cp $wheel "$CODEMPSUBLIME_DIR"
|
|
cp $wheel "$CODEMPTEST_DIR"
|
|
done
|
|
|
|
cd "$CODEMPSUBLIME_DIR"
|
|
source .venv/bin/activate
|
|
pip install $wheel --force-reinstall
|
|
|