Skip to content

Commit

Permalink
- debugging missing platforms in GitHub action MacOS builds;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Sep 8, 2022
1 parent f68455e commit ed6d896
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ jobs:
strategy:
matrix:
python_version: ['3.7', '3.8', '3.9', '3.10']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
# os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
os: ['macos-latest']
include:
- os: ubuntu-latest
container: quay.io/pypa/manylinux_2_24_x86_64 # https://github.com/pypa/manylinux
# - os: ubuntu-latest
# container: quay.io/pypa/manylinux_2_24_x86_64 # https://github.com/pypa/manylinux
- os: macos-latest
python_version: 3.7
upload_source: true # just need ONE of them to do it
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def clang_version():
def multiarch_args():
"""Returns args requesting multi-architecture support, if applicable."""
# On MacOS we build "universal2" packages, for both x86_64 and arm64/M1
print(f"sys.platform={sys.platform}")
print(f"sysconfig.get_platform()={sysconfig.get_platform()}")
if sys.platform == 'darwin' and 'universal2' in sysconfig.get_platform():
args = ['-arch', 'x86_64']
# ARM support was added in XCode 12, which requires MacOS 10.15.4
Expand Down

0 comments on commit ed6d896

Please sign in to comment.