Skip to content

Commit 74b1a67

Browse files
authored
python3.12-tokenizers: fix build
[skip ci]
1 parent 3daf69a commit 74b1a67

File tree

1 file changed

+5
-3
lines changed
  • tur-pypi-312/python3.12-tokenizers

1 file changed

+5
-3
lines changed

tur-pypi-312/python3.12-tokenizers/build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ termux_step_make_install() {
5050
export PYO3_CROSS_LIB_DIR=$TERMUX_PREFIX/lib
5151
export PYTHONPATH=$TERMUX_PREFIX/lib/python${TERMUX_PYTHON_VERSION}/site-packages
5252

53-
export RUSTFLAGS="-C link-args=-L$TERMUX_PREFIX/lib $RUSTFLAGS"
54-
55-
build-python -m maturin build --release --skip-auditwheel --target $CARGO_BUILD_TARGET -Z build-std
53+
build-python -m maturin build \
54+
--target $CARGO_BUILD_TARGET \
55+
--release --skip-auditwheel \
56+
--interpreter python${TERMUX_PYTHON_VERSION} \
57+
-Z build-std
5658

5759
local _pyver="${TERMUX_PYTHON_VERSION/./}"
5860
# Fix wheel name, although it it built with tag `cp39-abi3`, but it is linked against `python3.x.so`

0 commit comments

Comments
 (0)