Skip to content

Commit 16c9ca6

Browse files
committed
Fix missing OpenMP support with Python 3.13
1 parent f45b7a4 commit 16c9ca6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v5
24+
- name: Install OpenMP on macOS
25+
if: contains(matrix.os, 'macos')
26+
run: brew install libomp
2427
- name: Set up Python ${{ matrix.python-version }}
2528
id: setup-python
2629
uses: actions/setup-python@v6
@@ -33,6 +36,11 @@ jobs:
3336
virtualenvs-in-project: true
3437
installer-parallel: true
3538
- name: Install dependencies
39+
env:
40+
CPPFLAGS: ${{ runner.os == 'macOS' && '-I/opt/homebrew/opt/libomp/include' || '' }}
41+
LDFLAGS: ${{ runner.os == 'macOS' && '-L/opt/homebrew/opt/libomp/lib' || '' }}
42+
CFLAGS: ${{ runner.os == 'macOS' && '-Xpreprocessor -fopenmp' || '' }}
43+
CXXFLAGS: ${{ runner.os == 'macOS' && '-Xpreprocessor -fopenmp' || '' }}
3644
run: poetry install --no-interaction --no-root
3745
- name: Install machine
3846
run: poetry install --no-interaction

0 commit comments

Comments
 (0)