From 52c556b784b259a00bc07b60f917feae65657e8e Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 9 Sep 2026 11:25:31 +0200 Subject: [PATCH] try using virtual environment for python on macOS --- .github/workflows/build-majestic.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-majestic.yml b/.github/workflows/build-majestic.yml index 91f692a2c..1847f02c6 100644 --- a/.github/workflows/build-majestic.yml +++ b/.github/workflows/build-majestic.yml @@ -237,9 +237,14 @@ jobs: sudo mv lib/* /opt/homebrew/lib/ sudo mv include/* /opt/homebrew/include/ + - name: Create Python virtual environment + run: | + python3 -m venv .venv + .venv/bin/python -m pip install --upgrade pip + - name: Install cibuildwheel run: | - python3 -m pip install git+https://github.com/joerick/cibuildwheel.git@main + .venv/bin/python -m pip install git+https://github.com/joerick/cibuildwheel.git@main - name: Install and test bindings env: @@ -247,7 +252,7 @@ jobs: CIBW_TEST_COMMAND: "pytest {project}/src/runtime/python" CIBW_SKIP: "pp* cp36* cp37* cp38* cp39*" run: | - python3 -m cibuildwheel src/runtime/python --output-dir wheelhouse + .venv/bin/python -m cibuildwheel src/runtime/python --output-dir wheelhouse - uses: actions/upload-artifact@v4 with: