mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-12-23 13:14:52 +01:00
fix: get sysconfig from the python that builds, remove old maturin stuff
Former-commit-id: 3ce2271721d3e498cfb5a382efe699be9003ed0a
This commit is contained in:
parent
0a15f4a1f9
commit
287ae67b3a
2 changed files with 3 additions and 22 deletions
9
build.sh
9
build.sh
|
@ -6,17 +6,14 @@ FILENAME="libcodemp_client"
|
|||
|
||||
TARGET_DIR="$ROOT_DIR/bindings"
|
||||
TARGET_NAME="codemp_client"
|
||||
TARGET_EXT="$(python -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))')"
|
||||
|
||||
FULL_TARGET="${TARGET_NAME}${TARGET_EXT}"
|
||||
|
||||
PYO3_PYTHON="$(pyenv which python)"
|
||||
PYTHON_SYS_EXECUTABLE="$PYO3_PYTHON"
|
||||
CARGO_FEATURES="pyo3/extension-module"
|
||||
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 --features "$CARGO_FEATURES"
|
||||
# env PYO3_PYTHON="${PYO3_PYTHON}" PYTHON_SYS_EXECUTABLE="$PYO3_PYTHON" cargo build
|
||||
env PYO3_PYTHON="${PYO3_PYTHON}" PYTHON_SYS_EXECUTABLE="$PYO3_PYTHON" cargo build
|
||||
echo "Copying into: $TARGET_DIR/$FULL_TARGET"
|
||||
|
||||
[[ -f "$TARGET_DIR/$FUll_TARGET" ]] && echo "$FILE exists."
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
[build-system]
|
||||
requires = ["maturin>=1.1,<2.0"]
|
||||
build-backend = "maturin"
|
||||
|
||||
[project]
|
||||
name = "Codemp Client"
|
||||
requires-python = ">=3.7"
|
||||
classifiers = [
|
||||
"Programming Language :: Rust",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
"Programming Language :: Python :: Implementation :: PyPy",
|
||||
]
|
||||
|
||||
|
||||
[tool.maturin]
|
||||
features = ["pyo3/extension-module"]
|
Loading…
Reference in a new issue