From 4aa0a9a2cf2ced49355f47553e2a0c79effdfc65 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Thu, 23 Nov 2023 19:16:16 +0100 Subject: [PATCH] Add wheel build --- .github/workflows/wheels.yml | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0fd98f9..50ff78a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -29,12 +29,13 @@ jobs: uses: actions/checkout@v4 - name: Setup run: | - sudo apt-get update && sudo apt-get install -y cmake git g++ libtbb-dev libmpfr-dev libgmp-dev libpython3-dev python3 python3-distutils git submodule update --init --recursive - name: CI Build Wheel uses: pypa/cibuildwheel@v2.16 env: + CIBW_PLATFORM: linux CIBW_ARCHS: x86_64 + CIBW_BEFORE_ALL_LINUX: 'apt install cmake git g++ libtbb-dev libmpfr-dev libgmp-dev libpython3-dev python3 python3-distutils' - name: Upload uses: actions/upload-artifact@v3 with: diff --git a/setup.py b/setup.py index 939633b..8944f5c 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ Pybind11Extension( "pyvpmr", ["src/VPMR.cpp"], - include_dirs=["eigen", "eigen/unsupported", "mpreal", "exprtk", "exprtk-custom-types", "usr/include"], + include_dirs=["eigen", "eigen/unsupported", "mpreal", "exprtk", "exprtk-custom-types"], libraries=["mpfr", "gmp", "tbb"], define_macros=[("PYVPMR", 1)], ),