fix: cleaned up build script, version bumps

Former-commit-id: 30e5f85a3e0bf9c4fbb3521b287043b6f55e76a6
This commit is contained in:
Camillo Schenone 2024-03-16 15:51:49 +01:00
parent 287ae67b3a
commit 43d55e3143
3 changed files with 4 additions and 6 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "CodempClient-Sublime" name = "CodempClient-Sublime"
version = "0.4.0" version = "0.6.1"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -19,4 +19,4 @@ tracing = "0.1.40"
tracing-subscriber = "0.3.18" tracing-subscriber = "0.3.18"
[build-dependencies] [build-dependencies]
pyo3-build-config = "0.19.2" pyo3-build-config = "0.20"

View file

@ -1 +1 @@
b84a38da4b28536c8e50e18417981dbe455b2e61 b736bf0e31e4e4fab5cdeaf75895fca09d18bc2b

View file

@ -8,13 +8,11 @@ TARGET_DIR="$ROOT_DIR/bindings"
TARGET_NAME="codemp_client" TARGET_NAME="codemp_client"
PYO3_PYTHON="$(pyenv which python)" PYO3_PYTHON="$(pyenv which python)"
PYTHON_SYS_EXECUTABLE="$PYO3_PYTHON"
TARGET_EXT="$($PYO3_PYTHON -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))')" TARGET_EXT="$($PYO3_PYTHON -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))')"
FULL_TARGET="${TARGET_NAME}${TARGET_EXT}" FULL_TARGET="${TARGET_NAME}${TARGET_EXT}"
echo "Building with python: $PYO3_PYTHON" echo "Building with python: $PYO3_PYTHON"
env PYO3_PYTHON="${PYO3_PYTHON}" PYTHON_SYS_EXECUTABLE="$PYO3_PYTHON" cargo build env PYO3_PYTHON="${PYO3_PYTHON}" cargo build
echo "Copying into: $TARGET_DIR/$FULL_TARGET" echo "Copying into: $TARGET_DIR/$FULL_TARGET"
[[ -f "$TARGET_DIR/$FUll_TARGET" ]] && echo "$FILE exists."
ditto "$BUILD_DIR/${FILENAME}.dylib" "$TARGET_DIR/$FULL_TARGET" ditto "$BUILD_DIR/${FILENAME}.dylib" "$TARGET_DIR/$FULL_TARGET"