codemp/dist/py/build.sh
cschen bdbd94879b feat: added maturin wheel building config as completely separate "project",
feat: added stubs for python glue, bundled in the wheel,
feat: the python glue now uses less stupid names.
2024-08-06 23:28:09 +02:00

7 lines
234 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"