Skip to content

Commit fa7077d

Browse files
authored
python3.11-tokenizers: fix build
[skip ci]
1 parent 74b1a67 commit fa7077d

File tree

1 file changed

+5
-3
lines changed
  • tur-pypi-311/python3.11-tokenizers

1 file changed

+5
-3
lines changed

tur-pypi-311/python3.11-tokenizers/build.sh

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

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

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

0 commit comments

Comments
 (0)