Skip to content

Commit

Permalink
try self-compiled sqlite on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 12, 2024
1 parent 9776991 commit 36cc53a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,16 @@ jobs:
name: Build wheels on macos-14 (arm64)
runs-on: macos-14
env:
SQLite3_ROOT: /opt/homebrew/opt/sqlite
SQLite3_ROOT: ${{ github.workspace }}/libs
MACOSX_DEPLOYMENT_TARGET: '14.0'
CIBW_SKIP: cp27-* cp35-* cp36-*
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
CIBW_BEFORE_ALL: >
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
cd sqlite-autoconf-3460100 &&
CC=clang CFLAGS="-arch arm64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
make install
steps:
- uses: actions/checkout@v3
Expand All @@ -168,10 +174,7 @@ jobs:

- name: Install Deps
run: |
brew install sqlite3
pip install setuptools scikit-build wheel cmake
ls -la /opt/homebrew
- name: Build wheels
uses: pypa/[email protected]
Expand Down

0 comments on commit 36cc53a

Please sign in to comment.