Skip to content

Commit 3284e52

Browse files
committed
python3.11-*: adapt
[skip ci]
1 parent 84ead70 commit 3284e52

File tree

13 files changed

+44
-0
lines changed

13 files changed

+44
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ termux_step_post_get_source() {
6464

6565
tar -xf $_cmake_source_file
6666
mv cmake-$_CMAKE_VERSION cmake-source
67+
68+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
6769
}
6870

6971
termux_step_configure() {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ TUR_AUDIT_WHEEL_NO_LIBS=true
1717

1818
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
1919

20+
termux_step_post_get_source() {
21+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
22+
}
23+
2024
termux_step_pre_configure() {
2125
rm CMakeLists.txt Makefile Rakefile
2226

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ termux_pkg_auto_update() {
2828
fi
2929
}
3030

31+
termux_step_post_get_source() {
32+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
33+
}
34+
3135
termux_step_pre_configure() {
3236
export STATIC_DEPS=true
3337
export TERMUX_CONFIGURE_CMD_EXTRA="--build=x86_64-linux-gnu --host=$TERMUX_HOST_PLATFORM"

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ termux_step_post_get_source() {
6363

6464
tar -xf $_ninja_source_file
6565
mv ninja-$_NINJA_VERSION ninja-source
66+
67+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
6668
}
6769

6870
termux_step_configure() {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ TUR_AUTO_AUDIT_WHEEL=true
2020
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
2121

2222
termux_step_post_get_source() {
23+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
24+
2325
# numpy has switched to use meson-python by default,
2426
# but meson-python hasn't supported cross compiling.
2527
# See mesonbuild/meson-python#321

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ TUR_PACKAGE_WHEEL_LICENSE=false
2121

2222
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
2323

24+
termux_step_post_get_source() {
25+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
26+
}
27+
2428
termux_step_pre_configure() {
2529
CFLAGS="-I$TERMUX_PYTHON_HOME/site-packages/numpy/core/include $CFLAGS"
2630
CPPFLAGS="-I$TERMUX_PYTHON_HOME/site-packages/numpy/core/include $CPPFLAGS"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ TUR_PACKAGE_WHEEL_LICENSE=false
1919

2020
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
2121

22+
termux_step_post_get_source() {
23+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
24+
}
25+
2226
termux_step_post_make_install() {
2327
if [ ! -e "$TERMUX_PYTHON_HOME/site-packages/pillow-$TERMUX_PKG_VERSION.dist-info" ]; then
2428
termux_error_exit "Package ${TERMUX_PKG_NAME} doesn't build properly."

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ termux_pkg_auto_update() {
4444
termux_pkg_upgrade_version "${latest_version}"
4545
}
4646

47+
termux_step_post_get_source() {
48+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
49+
}
50+
4751
termux_step_pre_configure() {
4852
termux_setup_cmake
4953
termux_setup_rust

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ TUR_AUDIT_WHEEL_NO_LIBS=true
1717

1818
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
1919

20+
termux_step_post_get_source() {
21+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
22+
}
23+
2024
termux_step_pre_configure() {
2125
LDFLAGS+=" -Wl,--no-as-needed -lpython${TERMUX_PYTHON_VERSION}"
2226
}

tur-pypi-311/python3.11-pydantic-core/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ TUR_WHEEL_DIR="target/wheels"
2121

2222
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
2323

24+
termux_step_post_get_source() {
25+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
26+
}
27+
2428
termux_step_pre_configure() {
2529
termux_setup_rust
2630

0 commit comments

Comments
 (0)