Skip to content

Commit 82c2502

Browse files
committed
Build: Fix wheel on macOS Py3.6 (which shouldn't use Py2.7, obviously).
1 parent c91dd74 commit 82c2502

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ jobs:
241241
USE_BUNDLE: "true"
242242
MACOSX_DEPLOYMENT_TARGET: "11.0"
243243
LUPA_WITH_LUA_DLOPEN: ${{ startsWith(matrix.os, 'windows') && 'false' || 'true' }}
244+
PYTHON_BIN_DIR: ${{ startsWith(matrix.pyversion, '2.') && '/Library/Frameworks/Python.framework/Versions/2.7/bin' || '' }}
244245

245246
steps:
246247
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -263,12 +264,12 @@ jobs:
263264
264265
- name: Install dependencies
265266
run: |
266-
export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
267+
export PATH=$PYTHON_BIN_DIR:$PATH
267268
python -m pip install setuptools wheel -r requirements.txt
268269
269270
- name: Build wheels
270271
run: |
271-
export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
272+
export PATH=$PYTHON_BIN_DIR:$PATH
272273
python setup.py --with-cython sdist ${{ contains(matrix.pyversion, '3.') && 'build_ext -j6' || '' }} bdist_wheel
273274
274275
- name: Release

0 commit comments

Comments
 (0)