-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marius Isken
committed
Mar 7, 2024
1 parent
bbccae3
commit c59a878
Showing
2 changed files
with
3 additions
and
16 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 |
---|---|---|
|
@@ -15,15 +15,13 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-11] | ||
os: [ubuntu-20.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" | ||
with: | ||
config-file: "{package}/pyproject.toml" | ||
|
||
|
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 |
---|---|---|
@@ -1,26 +1,15 @@ | ||
#!/usr/bin/env python | ||
import sysconfig | ||
|
||
import numpy | ||
from setuptools import Extension, setup | ||
|
||
is_mac = "macos" in sysconfig.get_platform().lower() | ||
|
||
|
||
extra_compile_args = ["-fopenmp"] | ||
extra_link_args = ["-lgomp"] | ||
if is_mac: | ||
extra_compile_args = ["-fopenmp=libomp"] | ||
extra_link_args = ["-lomp"] | ||
|
||
setup( | ||
ext_modules=[ | ||
Extension( | ||
"qseek.ext.array_tools", | ||
sources=["src/qseek/ext/array_tools.c"], | ||
include_dirs=[numpy.get_include()], | ||
extra_compile_args=["-O3", "-flto", *extra_compile_args], | ||
extra_link_args=extra_link_args, | ||
extra_compile_args=["-fopenmp", "-O3", "-flto"], | ||
extra_link_args=["-lgomp"], | ||
) | ||
] | ||
) |