From 2d9f840a7744893330454536ba8b8e69de11909d Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Fri, 18 Oct 2024 17:48:03 +0800 Subject: [PATCH] optimized --- ndk-pkg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ndk-pkg b/ndk-pkg index e26b677..b45260b 100755 --- a/ndk-pkg +++ b/ndk-pkg @@ -5663,11 +5663,14 @@ $DOT_CONTENT export PATH="$NON_RELOCATEABLE_BINARY_PACKAGE_INSTALL_DIR/bin:$PATH" if [ "$PACKAGE_DEP_UPP_PYTHON3" = 1 ] ; then - if [ ! -f "$NATIVE_PACKAGE_INSTALLED_ROOT/python3/ok" ] ; then + PYTHON3_DISTRIBUTION_INSTALL_DIR="$NATIVE_PACKAGE_INSTALLED_ROOT/python3" + + if [ ! -f "$PYTHON3_DISTRIBUTION_INSTALL_DIR/ok" ] ; then PYTHON3_DISTRIBUTION_VERSION='2024.10.17' PYTHON3_DISTRIBUTION_FILENAME="python-distribution-$PYTHON3_DISTRIBUTION_VERSION-$T.tar.xz" wfetch "https://github.com/leleliu008/python-distribution/releases/download/$PYTHON3_DISTRIBUTION_VERSION/$PYTHON3_DISTRIBUTION_FILENAME" - run bsdtar xf "$PYTHON3_DISTRIBUTION_FILENAME" + run install -d "$PYTHON3_DISTRIBUTION_INSTALL_DIR" + run bsdtar xf "$PYTHON3_DISTRIBUTION_FILENAME" -C "$PYTHON3_DISTRIBUTION_INSTALL_DIR" --strip-components 1 --no-same-owner run touch "$NATIVE_PACKAGE_INSTALLED_ROOT/python3/ok" fi export PATH="$NATIVE_PACKAGE_INSTALLED_ROOT/python3/bin:$PATH"