-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build fiona 1.10a2 * Ensure pyparsing and shapely are installed for testing wheels * It's liblerc, not iliblerc. Also add some cirrus debugging * More debugging * More debugging * Even more debugging * More and more debugging * Local port for proj, more debugging * Add --depending flag to delocate and remove giflib * Remove brotli, rtmpdump brew packages Disable pcre2, postgresql, odbc for GDAL, idn2 for curl
- Loading branch information
Showing
19 changed files
with
587 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ wheel_build_task: | |
env: | ||
BUILD_PREFIX: /private/tmp/local | ||
REPO_DIR: Fiona | ||
BUILD_COMMIT: master | ||
BUILD_COMMIT: 1.10a2 | ||
CIRRUS_CLONE_SUBMODULES: true | ||
PATH: /opt/homebrew/opt/[email protected]/bin:$PATH | ||
PLAT: "arm64" | ||
BUILD_DEPENDS: "setuptools cython~=3.0.2 wheel" | ||
TEST_DEPENDS: "attrs pytest click mock boto3 packaging hypothesis wheel pytz fsspec aiohttp requests" | ||
TEST_DEPENDS: "attrs pytest click mock boto3 packaging hypothesis wheel pytz fsspec aiohttp requests pyparsing shapely" | ||
MACOSX_DEPLOYMENT_TARGET: "11.0" | ||
matrix: | ||
- MB_PYTHON_VERSION: "3.12" | ||
|
@@ -20,9 +20,9 @@ wheel_build_task: | |
- MB_PYTHON_VERSION: "3.8" | ||
install_pre_requirements_script: | ||
- brew install pkg-config [email protected] | ||
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python | ||
- ln -s /opt/homebrew/opt/[email protected]/bin/python3.10 /opt/homebrew/opt/[email protected]/bin/python | ||
brew_remove_pkgs_script: | ||
- brew remove -f --ignore-dependencies iliblerc webp zstd libtiff libxcb libxdcmp curl php lcms2 xmlto ghostscript lz4 openjpeg | ||
- brew remove -f --ignore-dependencies liblerc webp zstd libtiff libxcb libxdcmp curl php lcms2 xmlto ghostscript lz4 openjpeg xz gettext giflib rtmpdump brotli | ||
build_wheel_script: | ||
- mkdir -p $BUILD_PREFIX/include | ||
- mkdir -p $BUILD_PREFIX/lib/pkgconfig | ||
|
@@ -32,6 +32,11 @@ wheel_build_task: | |
- source multibuild/common_utils.sh | ||
- source multibuild/travis_steps.sh | ||
- python3 -m pip install virtualenv | ||
- which python3 | ||
- echo $PATH | ||
- ls /opt/homebrew/opt/[email protected]/bin | ||
- ls /private/tmp/local/bin | ||
- which python | ||
- before_install | ||
- clean_code $REPO_DIR $BUILD_COMMIT | ||
- MACOSX_DEPLOYMENT_TARGET=11.0 | ||
|
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 7d736d129..2be8f8be9 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -129,7 +129,22 @@ if(NOT EXE_SQLITE3) | ||
message(SEND_ERROR "sqlite3 binary not found!") | ||
endif() | ||
|
||
-find_package(Sqlite3 REQUIRED) | ||
+find_package(unofficial-sqlite3 CONFIG REQUIRED) | ||
+if(unofficial-sqlite3_FOUND) | ||
+ set(SQLITE3_FOUND true) | ||
+ get_target_property(SQLITE3_INCLUDE_DIR unofficial::sqlite3::sqlite3 INTERFACE_INCLUDE_DIRECTORIES) | ||
+ set(SQLITE3_LIBRARY unofficial::sqlite3::sqlite3) | ||
+ # Extract version information from the header file | ||
+ if(SQLITE3_INCLUDE_DIR) | ||
+ file(STRINGS ${SQLITE3_INCLUDE_DIR}/sqlite3.h _ver_line | ||
+ REGEX "^#define SQLITE_VERSION *\"[0-9]+\\.[0-9]+\\.[0-9]+\"" | ||
+ LIMIT_COUNT 1) | ||
+ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" | ||
+ SQLITE3_VERSION "${_ver_line}") | ||
+ unset(_ver_line) | ||
+ endif() | ||
+endif() | ||
+ | ||
if(NOT SQLITE3_FOUND) | ||
message(SEND_ERROR "sqlite3 dependency not found!") | ||
endif() | ||
@@ -151,6 +165,7 @@ if(ENABLE_TIFF) | ||
find_package(TIFF REQUIRED) | ||
if(TIFF_FOUND) | ||
set(TIFF_ENABLED TRUE) | ||
+ set(TIFF_LIBRARY TIFF::TIFF) | ||
else() | ||
message(SEND_ERROR | ||
"libtiff dependency not found! Use ENABLE_TIFF=OFF to force it off") | ||
diff --git a/cmake/project-config.cmake.in b/cmake/project-config.cmake.in | ||
index 7d5579ae..0cf96252 100644 | ||
--- a/cmake/project-config.cmake.in | ||
+++ b/cmake/project-config.cmake.in | ||
@@ -27,6 +27,7 @@ if(@PROJECT_VARIANT_NAME@ STREQUAL "PROJ4") | ||
endif() | ||
cmake_policy(POP) | ||
|
||
+find_dependency(unofficial-sqlite3 CONFIG) | ||
if(DEFINED PROJ_CONFIG_FIND_TIFF_DEP) | ||
find_dependency(TIFF) | ||
endif() |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/cmake/ProjUtilities.cmake b/cmake/ProjUtilities.cmake | ||
index 6f43edb5c..1ed89d597 100644 | ||
--- a/cmake/ProjUtilities.cmake | ||
+++ b/cmake/ProjUtilities.cmake | ||
@@ -51,7 +51,7 @@ function(proj_target_output_name TARGET_NAME OUTPUT_NAME) | ||
|
||
# On Windows, ABI version is specified using binary file name suffix. | ||
# On Unix, suffix is empty and SOVERSION is used instead. | ||
- if(WIN32) | ||
+ if(0) | ||
string(LENGTH "${${PROJECT_NAME}_ABI_VERSION}" abilen) | ||
if(abilen GREATER 0) | ||
set(SUFFIX "_${${PROJECT_NAME}_ABI_VERSION}") |
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO OSGeo/PROJ | ||
REF "${VERSION}" | ||
SHA512 45775e2b2a6b5bc490743c562155521a2ef48c5a8834cc96f88784aea785df10688f8962ae22fcac64d3b2f85378539ef1d3a082243cdc0ca3695ed8b9efa18b | ||
HEAD_REF master | ||
PATCHES | ||
fix-win-output-name.patch | ||
fix-proj4-targets-cmake.patch | ||
remove_toolset_restriction.patch | ||
) | ||
|
||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
FEATURES | ||
net ENABLE_CURL | ||
tiff ENABLE_TIFF | ||
tools BUILD_APPS | ||
) | ||
|
||
vcpkg_list(SET TOOL_NAMES cct cs2cs geod gie invgeod invproj proj projinfo projsync) | ||
if("tools" IN_LIST FEATURES AND NOT "net" IN_LIST FEATURES) | ||
set(BUILD_PROJSYNC OFF) | ||
vcpkg_list(APPEND FEATURE_OPTIONS -DBUILD_PROJSYNC=${BUILD_PROJSYNC}) | ||
vcpkg_list(REMOVE_ITEM TOOL_NAMES projsync) | ||
endif() | ||
|
||
find_program(EXE_SQLITE3 NAMES "sqlite3" PATHS "${CURRENT_HOST_INSTALLED_DIR}/tools" NO_DEFAULT_PATH REQUIRED) | ||
|
||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
${FEATURE_OPTIONS} | ||
-DNLOHMANN_JSON=external | ||
-DBUILD_TESTING=OFF | ||
"-DEXE_SQLITE3=${EXE_SQLITE3}" | ||
OPTIONS_DEBUG | ||
-DBUILD_APPS=OFF | ||
) | ||
|
||
vcpkg_cmake_install() | ||
|
||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") | ||
# Enforce consistency with src/lib_proj.cmake build time configuration. | ||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/proj.h" | ||
"#ifndef PROJ_DLL" | ||
"#ifndef PROJ_DLL\n# define PROJ_DLL\n#elif 0" | ||
) | ||
endif() | ||
|
||
vcpkg_cmake_config_fixup(PACKAGE_NAME proj4 CONFIG_PATH lib/cmake/proj4 DO_NOT_DELETE_PARENT_CONFIG_PATH) | ||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/proj) | ||
|
||
if ("tools" IN_LIST FEATURES) | ||
vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN) | ||
endif () | ||
|
||
file(REMOVE_RECURSE | ||
"${CURRENT_PACKAGES_DIR}/debug/include" | ||
"${CURRENT_PACKAGES_DIR}/debug/share" | ||
"${CURRENT_PACKAGES_DIR}/share/doc" | ||
"${CURRENT_PACKAGES_DIR}/share/man" | ||
) | ||
|
||
vcpkg_copy_pdbs() | ||
|
||
vcpkg_fixup_pkgconfig() | ||
if(NOT DEFINED VCPKG_BUILD_TYPE AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) | ||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/proj.pc" " -lproj" " -lproj_d") | ||
endif() | ||
|
||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/cmake/project-config-version.cmake.in b/cmake/project-config-version.cmake.in | ||
index d9807b2c5..7ffe39364 100644 | ||
--- a/cmake/project-config-version.cmake.in | ||
+++ b/cmake/project-config-version.cmake.in | ||
@@ -28,14 +28,6 @@ elseif (NOT (APPLE OR (NOT DEFINED CMAKE_SIZEOF_VOID_P) OR | ||
# since a multi-architecture library is built for that platform). | ||
set (REASON "sizeof(*void) = @CMAKE_SIZEOF_VOID_P@") | ||
set (PACKAGE_VERSION_UNSUITABLE TRUE) | ||
-elseif (MSVC AND NOT ( | ||
- # toolset version must be at least as great as @PROJECT_NAME@'s | ||
- MSVC_TOOLSET_VERSION GREATER_EQUAL @MSVC_TOOLSET_VERSION@ | ||
- # and major versions must match | ||
- AND MSVC_TOOLSET_MAJOR EQUAL @MSVC_TOOLSET_MAJOR@ )) | ||
- # Reject if there's a mismatch in MSVC compiler versions | ||
- set (REASON "MSVC_TOOLSET_VERSION = @MSVC_TOOLSET_VERSION@") | ||
- set (PACKAGE_VERSION_UNSUITABLE TRUE) | ||
elseif (PACKAGE_FIND_VERSION) | ||
if (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) | ||
set (PACKAGE_VERSION_EXACT TRUE) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
proj provides CMake targets: | ||
|
||
find_package(PROJ CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE PROJ::proj) |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "proj", | ||
"version": "9.3.1", | ||
"description": "PROJ library for cartographic projections", | ||
"homepage": "https://proj.org/", | ||
"license": "MIT", | ||
"dependencies": [ | ||
"nlohmann-json", | ||
{ | ||
"name": "sqlite3", | ||
"default-features": false | ||
}, | ||
{ | ||
"name": "sqlite3", | ||
"host": true, | ||
"default-features": false, | ||
"features": [ | ||
"tool" | ||
] | ||
}, | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
], | ||
"default-features": [ | ||
"net", | ||
"tiff" | ||
], | ||
"features": { | ||
"net": { | ||
"description": "Enable network support", | ||
"dependencies": [ | ||
"curl" | ||
] | ||
}, | ||
"tiff": { | ||
"description": "Enable TIFF support to read some grids", | ||
"dependencies": [ | ||
{ | ||
"name": "tiff", | ||
"default-features": false, | ||
"features": [ | ||
"zip" | ||
] | ||
} | ||
] | ||
}, | ||
"tools": { | ||
"description": "Build tools" | ||
} | ||
} | ||
} |
Oops, something went wrong.