Skip to content

Commit

Permalink
CI/CD update
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Isken committed Mar 7, 2024
1 parent bbccae3 commit c59a878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
15 changes: 2 additions & 13 deletions setup.py
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"],
)
]
)

0 comments on commit c59a878

Please sign in to comment.