-
If on macos-latest, I do - name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8 I can refer to Suppose that after setting up Python like that, I use cibuildwheel with If I do export pythonLocation=$(python3-config --prefix)
echo "pythonLocation: ${{env.pythonLocation}}" inside |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
In your test script, try doing |
Beta Was this translation helpful? Give feedback.
-
Thanks, good suggestion. In order to not overlap with pythonLocation from setup-python, I tried to export pythonLocation2: CIBW_BEFORE_ALL_MACOS: |
echo $(which python3-config)
export pythonLocation2=$(python3-config --prefix)
echo "pythonLocation2 is $pythonLocation2" and got
But it was a Python 3.10 cibuildwheel choice. So Update: |
Beta Was this translation helpful? Give feedback.
Thanks, good suggestion. In order to not overlap with pythonLocation from setup-python, I tried to export pythonLocation2:
and got
But it was a Python 3.10 cibuildwheel choice. So
python3-config
resolves to the wrong one insideCIBW_BEFORE_ALL_MACOS
. Any other suggestions?Update:
As @mayeut said below, it works if it's inside
CIBW_BEFORE_BUILD