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 2e2a254 commit 9776991
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,16 @@ jobs:
name: Build wheels on macos-13
runs-on: macos-13
env:
SQLite3_ROOT: ./sqlite-autoconf-3460100/.libs
SQLite3_ROOT: ${{ github.workspace }}/libs
MACOSX_DEPLOYMENT_TARGET: '10.9'
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 x86_64 -Os -DDSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_DQS=0 -DSQLITE_ENABLE_COLUMN_METADATA" ./configure; make
CC=clang CFLAGS="-arch x86_64 -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 @@ -205,7 +206,6 @@ jobs:

- name: Install Deps
run: |
brew install sqlite3
pip install setuptools scikit-build wheel cmake
- name: Build wheels
Expand Down

0 comments on commit 9776991

Please sign in to comment.