-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump min s2geography version to 0.2.0 (#81)
* bump s2geography min version to 0.2.0 * s2geography_INCLUDE_DIRS provided by s2geography * wheels: try remove s2geography patches * update fix-openssl header s2geography patch * clean-up * remove s2geography <0.2.0 backward compatibility * require pybind >= 2.11.0 The geoarrow module uses the `py::capsule` constructor added in 2.11.0. https://pybind11.readthedocs.io/en/stable/changelog.html#version-2-11-0-july-14-2023 * remove s2geography <0.2.0 backward compat (tests) * clone and extract properties: use GeographyKind
- Loading branch information
Showing
16 changed files
with
120 additions
and
193 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 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
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
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
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,51 +1,27 @@ | ||
From 82176ad1b811e92cc8ae8d8f7fc1d0a8b2e6325a Mon Sep 17 00:00:00 2001 | ||
From ccac9b1ea8ef85678473f6f6825e482ca4c19ebc Mon Sep 17 00:00:00 2001 | ||
From: Benoit Bovy <[email protected]> | ||
Date: Tue, 20 Aug 2024 14:56:33 +0200 | ||
Subject: [PATCH] add openssl as requirement | ||
Date: Mon, 2 Dec 2024 15:52:58 +0100 | ||
Subject: [PATCH] fix openssl header not found in specific cases | ||
|
||
Not only for special cases `BUNDLED` and `BREW` for `S2_SOURCE`. Using | ||
`S2_SOURCE=SYSTEM`, there may be cases where openssl and s2geometry were | ||
installed in different prefix paths (e.g., system-installed openssl and | ||
custom s2geometry installation). The change here should address those | ||
cases too. | ||
E.g., on MacOS with s2geometry built from source and installed in a | ||
custom directory and linked against openssl installed in an other, | ||
standard directory. | ||
--- | ||
CMakeLists.txt | 13 +++++-------- | ||
1 file changed, 5 insertions(+), 8 deletions(-) | ||
CMakeLists.txt | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f71ff49..518d124 100644 | ||
index 5fb3e93..6d040ad 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -114,11 +114,6 @@ macro(build_s2) | ||
|
||
set_property(TARGET s2 PROPERTY CXX_STANDARD ${CMAKE_CXX_STANDARD}) | ||
|
||
- # this might be needed since s2geometry includes it in general | ||
- # but not for any target explicilty? | ||
- find_package(OpenSSL) | ||
- target_include_directories(s2 INTERFACE ${OPENSSL_INCLUDE_DIR}) | ||
- | ||
get_target_property(S2_VERSION_STRING s2 VERSION) | ||
extract_s2_version(${S2_VERSION_STRING}) | ||
add_library(s2::s2 ALIAS s2) | ||
@@ -128,9 +123,6 @@ if(${S2GEOGRAPHY_S2_SOURCE} STREQUAL "CONDA") | ||
set(S2_ROOT_DIR "$ENV{CONDA_PREFIX}") | ||
set(S2_SOURCE "SYSTEM") | ||
elseif(${S2GEOGRAPHY_S2_SOURCE} STREQUAL "BREW") | ||
- # required for Homebrew installed s2geometry headers to find OpenSSL headers | ||
- find_package(OpenSSL) | ||
- include_directories(${OPENSSL_INCLUDE_DIR}) | ||
set(S2_SOURCE "SYSTEM") | ||
else() | ||
set(S2_SOURCE ${S2GEOGRAPHY_S2_SOURCE}) | ||
@@ -159,4 +151,9 @@ if (MSVC AND NOT ${S2_SOURCE} STREQUAL "BUNDLED") | ||
target_compile_options(s2::s2 INTERFACE /J) | ||
@@ -173,6 +173,11 @@ elseif(${S2_SOURCE} STREQUAL "SYSTEM") | ||
endif() | ||
endif() | ||
|
||
+# this might be needed since s2geometry includes it in general | ||
+# but not for any target explicilty? | ||
+find_package(OpenSSL REQUIRED) | ||
+target_include_directories(s2::s2 INTERFACE ${OPENSSL_INCLUDE_DIR}) | ||
+target_include_directories(${s2_NOALIAS_TARGET} INTERFACE ${OPENSSL_INCLUDE_DIR}) | ||
+ | ||
# --- Abseil (bundled build not supported) | ||
|
||
|
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
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
Oops, something went wrong.