-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from esa/fix-macos-x86
Fix Deployment for macOS x86_64 wheels on PyPi
- Loading branch information
Showing
9 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ jobs: | |
- uses: actions/checkout@v3 | ||
############################# LINUX WHEELS ############################# | ||
# In case of Linux we need to install compiler and build tools before building the wheels | ||
# We further only build the manylinux wheels, but not the musllinux wheels | ||
# We only build the manylinux wheels, but not the musllinux wheels (due to some compile problems) | ||
# We set-up QEMU to enable aarch64 builds in the GitHub Runner (which is x86_64 based) | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
|
@@ -41,8 +42,10 @@ jobs: | |
output-dir: dist | ||
if: matrix.os == 'ubuntu-latest' | ||
############################# MACOS WHEELS ############################# | ||
# Building on macOS requires an installation of gcc since the default clang compiler | ||
# lacks certain features required for building the package | ||
# We use Apple Clang, the macOS GitHub Runner is nowadays arm64 based | ||
# The GCC compiler installable via brew does not support cross-compiling for x86_64. Hence, also Apple Claang | ||
# For the x86_64, we set the MACOSX_DEPLOYMENT_TARGET='10.13' (released 2017) in order to have support for C++17 | ||
# We don't need this for the arm64 stuff since it works (and macOS on arm64 cam after C++17) | ||
- name: Build wheels (macOS ARM) | ||
uses: pypa/[email protected] | ||
env: | ||
|
@@ -56,8 +59,8 @@ jobs: | |
- name: Build wheels (macOS x86_64) | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_BUILD: brew install ninja gcc@12 | ||
CIBW_ENVIRONMENT: "CC=gcc-12 CXX=g++-12" | ||
CIBW_BEFORE_BUILD: brew install ninja | ||
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET="10.13"' | ||
CIBW_ARCHS_MACOS: "x86_64" | ||
CIBW_TEST_COMMAND: 'python -c "import polyhedral_gravity"' | ||
with: | ||
|
@@ -66,6 +69,7 @@ jobs: | |
if: matrix.os == 'macos-latest' | ||
############################# WINDOWS WHEELS ############################# | ||
# Set up the Visual Studio environment on Windows (required, so that CMake finds the compiler) | ||
# We use the Microsoft Visual Studio Compiler to compile the wheel | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
if: matrix.os == 'windows-latest' | ||
- name: Build wheels (Windows) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,7 @@ def build_extension(self, ext): | |
# -------------------------------------------------------------------------------- | ||
setup( | ||
name="polyhedral_gravity", | ||
version="3.1", | ||
version="3.2", | ||
author="Jonas Schuhmacher", | ||
author_email="[email protected]", | ||
description="Package to compute full gravity tensor of a given constant density polyhedron for arbitrary points " | ||
|