From 27f89ccd40feaace9c321919f21cfb7913fc0fd6 Mon Sep 17 00:00:00 2001 From: William Silversmith Date: Thu, 8 Aug 2024 14:28:09 -0400 Subject: [PATCH] release(1.4.1): rebuild for numpy 2.0 --- .github/workflows/build_wheel.yml | 10 +++++++++- setup.py | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index cf16e72..e434ae5 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -24,14 +24,22 @@ jobs: if: ${{ matrix.arch == 'aarch64' }} uses: docker/setup-qemu-action@v2 + - name: Create virtual environment + run: python -m venv venv + + - name: Activate virtual environment + run: source venv/bin/activate + - name: Install CMake uses: ssrobins/install-cmake@v1 + env: + CIBW_BEFORE_BUILD: source venv/bin/activate - name: Build wheels uses: pypa/cibuildwheel@v2.19.1 # to supply options, put them in 'env', like: env: - CIBW_BEFORE_BUILD: git submodule init && git submodule update && pip install cython numpy scikit-build + CIBW_BEFORE_BUILD: source venv/bin/activate && git submodule init && git submodule update && pip install --user --break-system-packages cython numpy scikit-build CPPFLAGS: -I/usr/local/opt/zlib/include LDFLAGS: -L/usr/local/opt/zlib/lib CIBW_ARCHS_MACOS: "x86_64 arm64" diff --git a/setup.py b/setup.py index 6f08689..d7d8e1c 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ def read(fname): setup( name='DracoPy', - version='1.4.0', + version='1.4.1', description = 'Python wrapper for Google\'s Draco Mesh Compression Library', author = 'Manuel Castro, William Silversmith :: Contributors :: Fatih Erol, Faru Nuri Sonmez, Zeyu Zhao, Denis Riviere', author_email = 'macastro@princeton.edu, ws9@princeton.edu',