From 8abec8c153576cb30e46c3da444dc5628becd32f Mon Sep 17 00:00:00 2001 From: Pablo Piskunow Date: Thu, 23 Nov 2023 10:32:21 +0100 Subject: [PATCH] fix CFLAG --- .github/workflows/tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e6d094..3e03283 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,13 +58,12 @@ jobs: - name: Clone and Install kwant (Ubuntu) if: startsWith(matrix.os, 'ubuntu') - env: - CFLAGS: "-I$(python -c 'import numpy; print(numpy.get_include())')" run: | git clone https://github.com/kwant-project/kwant.git cd kwant git checkout master - python setup.py build + numpy_include=$(python -c 'import numpy; print(numpy.get_include())') + CFLAGS="-I$numpy_include" python setup.py build sudo python setup.py install - name: Install Nox