File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,16 @@ jobs:
138138 python -m build 2>&1 | tee build.log
139139 exit `fgrep -i warning build.log | grep -v "WARNING setuptools_scm" | grep -v "-warnings" | grep -v "All Warnings are enabled" | wc -l`
140140
141- - if : startsWith (matrix.platform, 'macos-12') && matrix.python-version == '3.11'
141+ - if : ${{ (matrix.platform == 'macos-12' && matrix.python-version == '3.11') || matrix.platform == 'macos-14' }}
142142 run : |
143- # workaround for buggy universal2 wheel name with Python 3.11 (contains x86_64 binary only)
143+ # workaround for buggy universal2 wheel names (contain single arch binary only! )
144144 for whl in dist/*_universal2.whl; do
145- export whl_new=${whl/_universal2/_x86_64};
145+ export arch=`python -c 'import platform; print(platform.machine())'`;
146+ export whl_new=${whl/_universal2/_$arch};
146147 mv $whl $whl_new;
147148 python -m wheel unpack $whl_new;
148149 export whl_new_unpacked=`basename $whl_new | cut -d- -f-2`;
149- sed -i '' 's/_universal2/_x86_64 /g' $whl_new_unpacked/$whl_new_unpacked.dist-info/WHEEL;
150+ sed -i '' 's/_universal2/_$arch /g' $whl_new_unpacked/$whl_new_unpacked.dist-info/WHEEL;
150151 python -m wheel pack $whl_new_unpacked;
151152 done
152153
You can’t perform that action at this time.
0 commit comments