Skip to content

Commit

Permalink
Fix wheel platform tag, thanks pypa/wheel#406 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Aug 15, 2023
1 parent 3ecc104 commit 6f34b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,16 @@ jobs:
CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++"
- name: Install dependencies for building wheels
run: |
python3 -m pip install -U pip tox pybind11 twine setuptools wheel
- name: Install dependencies for building wheels
run: python3 -m pip install -U pip tox pybind11 twine setuptools wheel
python3 -m pip install -U pip tox pybind11 twine setuptools wheel>=0.40.0
- name: Build wheels
run: |
export PATH=$(brew --prefix llvm)/bin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/binutils/bin:$PATH:/usr/local/opt/findutils/libexec/gnubin
export CC=$(brew --prefix llvm)/bin/clang
export CXX=$(brew --prefix llvm)/bin/clang++
export ARCHFLAGS="-arch x86_64"
make wheel
- name: Fix wheel platform tag
run: |
python3 -m wheel tags --platform-tag=macosx_10_15_x86_64 --remove dist/*.whl
- name: Run simple test
run: |
python3 -m pip install dist/*.whl
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ def build_extensions(self):
cmdclass={'build_ext': BuildExt},
test_suite="tests",
zip_safe=False,
options={
'bdist_wheel': {'universal': False},
},
)
except Exception as e:
print("Build from setup.py failed. Error: ")
Expand Down

0 comments on commit 6f34b3b

Please sign in to comment.