From c3dc25c942d1b8e14649205e22130b6ec1bc556d Mon Sep 17 00:00:00 2001 From: Paco Wong Date: Sat, 25 Nov 2023 21:32:43 +0800 Subject: [PATCH] Change python alias --- .../workflows/generate-xcframework-maccatalyst.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-xcframework-maccatalyst.yml b/.github/workflows/generate-xcframework-maccatalyst.yml index c5dfaab370876..0960363474b1b 100644 --- a/.github/workflows/generate-xcframework-maccatalyst.yml +++ b/.github/workflows/generate-xcframework-maccatalyst.yml @@ -14,9 +14,11 @@ jobs: - name: check Xcode version and Python 3 run: | /usr/bin/xcodebuild -version - brew uninstall --ignore-dependencies python@3.10 - brew install python@3.10 - brew install python3 + #brew uninstall --ignore-dependencies python@3.10 + #brew install python@3.10 + #brew install python3 + alias python3=/opt/homebrew/bin/python3 + alias python=/opt/homebrew/bin/python3 python3 --version python --version @@ -39,7 +41,7 @@ jobs: run: | # Since Python 3.12, distutils is removed # pip3 install setuptools - pip3 install -r tools/ci_build/requirements.txt - python3 tools/ci_build/github/apple/build_macabi_framework.py --config=Release --build_dir=$HOME/onnxlibrary/macabi_release_v20230327_2320 \ + pip install -r tools/ci_build/requirements.txt + python tools/ci_build/github/apple/build_macabi_framework.py --config=Release --build_dir=$HOME/onnxlibrary/macabi_release_v20230327_2320 \ --include_ops_by_config=tools/ci_build/github/apple/hws_mobile_package.required_operators.config \ --path_to_protoc_exe=/usr/local/bin/protoc-3.21.12.0 tools/ci_build/github/apple/default_full_macabi_framework_build_settings.json