From ddee5bf471b65b37997db8604b40bd739e518534 Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Thu, 5 Sep 2024 02:37:19 +0800 Subject: [PATCH] optimized --- xcpkg | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/xcpkg b/xcpkg index 9c2bb2c..6d4f900 100755 --- a/xcpkg +++ b/xcpkg @@ -3593,14 +3593,13 @@ $DOT_CONTENT ######################################################################################### [ -n "$PACKAGE_DEP_PYM" ] && { - step "install needed python packages via pip3" + step "install needed python packages via pip" - PIP3="$(command -v pip3)" + PYTHON3="$(command -v python3)" || abort 1 "command not found: python3" - run "$PIP3" --version - run "$PIP3" install --upgrade pip setuptools wheel - run "$PIP3" --version - run "$PIP3" install --upgrade "$PACKAGE_DEP_PYM" + run "$PYTHON3" --version + run "$PYTHON3" -m pip install --upgrade pip + run "$PYTHON3" -m pip install --upgrade "$PACKAGE_DEP_PYM" } ######################################################################################### @@ -7910,7 +7909,7 @@ fi ################################################################################## -XCPKG_VERSION=0.22.11 +XCPKG_VERSION=0.22.12 XCPKG_ARG0="$0" XCPKG_ARG1="$1"