Skip to content

Commit 608f115

Browse files
authored
Fix python setuptools on macOS (#1181)
fix macos setuptools workaround
1 parent 320fcaf commit 608f115

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
node-version: ${{ matrix.node }}
3939
- if: ${{ startsWith(matrix.os, 'windows') }}
4040
run: pip.exe install setuptools
41-
- if: ${{ ! startsWith(matrix.os, 'windows') && matrix.os != 'macos-14' }}
41+
- if: ${{ startsWith(matrix.os, 'macos') }}
42+
run: brew install python-setuptools
43+
- if: ${{ !startsWith(matrix.os, 'windows') && !startsWith(matrix.os, 'macos') }}
4244
run: python3 -m pip install setuptools
43-
- if: matrix.os == 'macos-14'
44-
run: python3 -m pip install --break-system-packages setuptools
4545
- run: npm install --ignore-scripts
4646
- run: npm run build-debug
4747
- run: npm test
@@ -85,10 +85,10 @@ jobs:
8585
node-version: 16
8686
- if: ${{ startsWith(matrix.os, 'windows') }}
8787
run: pip.exe install setuptools
88-
- if: ${{ ! startsWith(matrix.os, 'windows') && matrix.os != 'macos-14' }}
88+
- if: ${{ startsWith(matrix.os, 'macos') }}
89+
run: brew install python-setuptools
90+
- if: ${{ !startsWith(matrix.os, 'windows') && !startsWith(matrix.os, 'macos') }}
8991
run: python3 -m pip install setuptools
90-
- if: matrix.os == 'macos-14'
91-
run: python3 -m pip install --break-system-packages setuptools
9292
- run: npm install --ignore-scripts
9393
- run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
9494
- run: ${{ env.ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)