From 51709c3eac9b33c947f4d379652573c2cf490e12 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 2 May 2020 11:29:29 +0100 Subject: Generate jq.c using CIBW_BEFORE_BUILD when building wheels --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index cac1a9a..ee5fb67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ jobs: - python3 -m pip install cibuildwheel==1.3.0 twine virtualenv - "make jq.c" script: + - export CIBW_BEFORE_BUILD="pip install cython==0.29.16 && cython jq.pyx" - export CIBW_TEST_REQUIRES="-r test-requirements.txt" - export CIBW_TEST_COMMAND="nosetests {project}/tests" - python3 -m cibuildwheel --output-dir wheelhouse && @@ -35,6 +36,7 @@ jobs: - python3 -m pip install cibuildwheel==1.3.0 twine virtualenv - "make jq.c" script: + - export CIBW_BEFORE_BUILD="pip install cython==0.29.16 && cython jq.pyx" - export CIBW_TEST_REQUIRES="-r test-requirements.txt" - export CIBW_TEST_COMMAND="nosetests {project}/tests" - python3 -m cibuildwheel --output-dir wheelhouse && -- cgit v1.2.3