File tree Expand file tree Collapse file tree 13 files changed +44
-0
lines changed Expand file tree Collapse file tree 13 files changed +44
-0
lines changed Original file line number Diff line number Diff 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
6971termux_step_configure () {
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ TUR_AUDIT_WHEEL_NO_LIBS=true
1717
1818source $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+
2024termux_step_pre_configure () {
2125 rm CMakeLists.txt Makefile Rakefile
2226
Original file line number Diff line number Diff 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+
3135termux_step_pre_configure () {
3236 export STATIC_DEPS=true
3337 export TERMUX_CONFIGURE_CMD_EXTRA=" --build=x86_64-linux-gnu --host=$TERMUX_HOST_PLATFORM "
Original file line number Diff line number Diff 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
6870termux_step_configure () {
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ TUR_AUTO_AUDIT_WHEEL=true
2020source $TERMUX_SCRIPTDIR /common-files/tur_build_wheel.sh
2121
2222termux_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
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ TUR_PACKAGE_WHEEL_LICENSE=false
2121
2222source $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+
2428termux_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 "
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ TUR_PACKAGE_WHEEL_LICENSE=false
1919
2020source $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+
2226termux_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."
Original file line number Diff line number Diff 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+
4751termux_step_pre_configure () {
4852 termux_setup_cmake
4953 termux_setup_rust
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ TUR_AUDIT_WHEEL_NO_LIBS=true
1717
1818source $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+
2024termux_step_pre_configure () {
2125 LDFLAGS+=" -Wl,--no-as-needed -lpython${TERMUX_PYTHON_VERSION} "
2226}
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ TUR_WHEEL_DIR="target/wheels"
2121
2222source $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+
2428termux_step_pre_configure () {
2529 termux_setup_rust
2630
You can’t perform that action at this time.
0 commit comments