mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-12-23 13:14:52 +01:00
fix: cleaned up build script, version bumps
Former-commit-id: 30e5f85a3e0bf9c4fbb3521b287043b6f55e76a6
This commit is contained in:
parent
287ae67b3a
commit
43d55e3143
3 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "CodempClient-Sublime"
|
||||
version = "0.4.0"
|
||||
version = "0.6.1"
|
||||
edition = "2021"
|
||||
|
||||
# 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"
|
||||
|
||||
[build-dependencies]
|
||||
pyo3-build-config = "0.19.2"
|
||||
pyo3-build-config = "0.20"
|
||||
|
|
|
@ -1 +1 @@
|
|||
b84a38da4b28536c8e50e18417981dbe455b2e61
|
||||
b736bf0e31e4e4fab5cdeaf75895fca09d18bc2b
|
4
build.sh
4
build.sh
|
@ -8,13 +8,11 @@ TARGET_DIR="$ROOT_DIR/bindings"
|
|||
TARGET_NAME="codemp_client"
|
||||
|
||||
PYO3_PYTHON="$(pyenv which python)"
|
||||
PYTHON_SYS_EXECUTABLE="$PYO3_PYTHON"
|
||||
TARGET_EXT="$($PYO3_PYTHON -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))')"
|
||||
FULL_TARGET="${TARGET_NAME}${TARGET_EXT}"
|
||||
|
||||
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"
|
||||
|
||||
[[ -f "$TARGET_DIR/$FUll_TARGET" ]] && echo "$FILE exists."
|
||||
ditto "$BUILD_DIR/${FILENAME}.dylib" "$TARGET_DIR/$FULL_TARGET"
|
||||
|
|
Loading…
Reference in a new issue