Skip to content

Commit 0d8bd4a

Browse files
Use Conda Python headers
1 parent 1fdde70 commit 0d8bd4a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ jobs:
4141
if: matrix.platform == 'macos-15-large'
4242
run: conda install -y 'clang>=12.0.1,<17'
4343

44+
- name: Prefer Conda Python headers (Ubuntu)
45+
if: startsWith(matrix.platform, 'ubuntu')
46+
run: |
47+
python -c "import sys, sysconfig; print(sys.executable); print(sys.version); print('INCLUDEPY=', sysconfig.get_config_var('INCLUDEPY'))"
48+
echo "CPPFLAGS=-I${CONDA_PREFIX}/include" >> $GITHUB_ENV
49+
echo "CFLAGS=-I${CONDA_PREFIX}/include" >> $GITHUB_ENV
50+
echo "LDFLAGS=-L${CONDA_PREFIX}/lib" >> $GITHUB_ENV
51+
4452
- name: Show conda environment info
4553
run: |
4654
conda info

0 commit comments

Comments
 (0)