-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI/RLS: upgrade to libspatialindex-2.0.0 (#316)
* Upgrade libspatialindex from 1.9.3 to 2.0.0 * Remove the unneeded ci/CMakeLists.txt * Use cmake install, removing the unneeded lib subdirs * Remove the soversion number and symlinks for the library name (via CMAKE_PLATFORM_NO_VERSIONED_SONAME=ON) * It turns out the cibuildwheel tests on different python versions (via tox) was misleading, as it was not testing the built-wheel but the local source tree and sidx library build. This is fixed with `pytest --import-mode=importlib` * Consequently, the musllinux wheels on PyPI are "broken". This is resolved by setting rpath for libspatialindex described next. * Use `CMAKE_INSTALL_RPATH` only for macOS. On Linux, `$ORIGIN` seems to confuse auditwheel and prevents creation of `Rtree.libs`. It want's LD_LIBRARY_PATH set while repairing the wheel. But the `$ORIGIN` rpath is still needed for musllinux, so manually add this last step in repair_wheel.py * Simplify copying directory trees in setup.py with copy_tree
- Loading branch information
Showing
8 changed files
with
71 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
python -c "import sys; print(sys.version)" | ||
|
||
set SIDX_VERSION=1.9.3 | ||
set SIDX_VERSION=2.0.0 | ||
|
||
curl -OL "https://github.com/libspatialindex/libspatialindex/archive/%SIDX_VERSION%.zip" | ||
curl -LO --retry 5 --retry-max-time 120 "https://github.com/libspatialindex/libspatialindex/archive/%SIDX_VERSION%.zip" | ||
|
||
tar xvf "%SIDX_VERSION%.zip" | ||
|
||
REM unzip 1.9.3.zip | ||
REM copy %~dp0\CMakeLists.txt libspatialindex-1.9.3\CMakeLists.txt | ||
cd libspatialindex-%SIDX_VERSION% | ||
|
||
mkdir build | ||
cd build | ||
|
||
pip install ninja | ||
|
||
cmake -D CMAKE_BUILD_TYPE=Release -G Ninja .. | ||
set INSTALL_PREFIX=%~dp0\..\rtree | ||
|
||
ninja | ||
cmake -G Ninja ^ | ||
-D CMAKE_BUILD_TYPE=Release ^ | ||
-D BUILD_SHARED_LIBS="ON" ^ | ||
-D CMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^ | ||
-D CMAKE_INSTALL_BINDIR=lib ^ | ||
-D CMAKE_INSTALL_LIBDIR=libdir ^ | ||
.. | ||
|
||
mkdir %~dp0\..\rtree\lib | ||
copy bin\*.dll %~dp0\..\rtree\lib | ||
xcopy /S ..\include\* %~dp0\..\rtree\include\ | ||
rmdir /Q /S bin | ||
ninja install | ||
|
||
dir %~dp0\..\rtree\ | ||
dir %~dp0\..\rtree\lib | ||
dir %~dp0\..\rtree\include | ||
:: remove unneeded libdir | ||
rmdir %INSTALL_PREFIX%\libdir /s /q | ||
|
||
dir %INSTALL_PREFIX% | ||
dir %INSTALL_PREFIX%\lib | ||
dir %INSTALL_PREFIX%\include /s |
Oops, something went wrong.