Skip to content

Commit

Permalink
stackoverflow.com/questions/75902777
Browse files Browse the repository at this point in the history
  • Loading branch information
vot4anto committed Oct 8, 2024
1 parent 520c740 commit 7ace34c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,11 @@ function build_gdal {
CXXFLAGS="$CXXFLAGS -DPROJ_RENAME_SYMBOLS -DPROJ_INTERNAL_CPP_NAMESPACE -g -O2"

EXPAT_PREFIX=$BUILD_PREFIX
#if [ -n "$IS_OSX" ]; then
# GEOS_CONFIG="-DGDAL_USE_GEOS=OFF"
#else
# GEOS_CONFIG="-DGDAL_USE_GEOS=ON"
#fi
EXPAT_PREFIX=$BUILD_PREFIX
GEOS_CONFIG="--with-geos=${BUILD_PREFIX}/bin/geos-config"
if [ -n "$IS_OSX" ]; then
GEOS_CONFIG="-DGDAL_USE_GEOS=OFF"
else
GEOS_CONFIG="-DGDAL_USE_GEOS=ON"
fi

local cmake=cmake
fetch_unpack http://download.osgeo.org/gdal/${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar.gz
Expand Down Expand Up @@ -360,7 +358,10 @@ function build_wheel_cmd {
pip download GDAL==${GDAL_VERSION}
tar xzvf GDAL-${GDAL_VERSION}.tar.gz
cd GDAL-${GDAL_VERSION}
GDAL_VERSION=$GDAL_VERSION $cmd $wheelhouse
echo "sleep"
sleep 3600
if [ "$(uname -m)" = "arm64" ]; GDAL_VERSION=$GDAL_VERSION ARCHFLAGS="-arch arm64" $cmd $wheelhouse --compile --no-cache-dir
GDAL_VERSION=$GDAL_VERSION ARCHFLAGS="-arch amd64" $cmd $wheelhouse --compile --no-cache-dir
fi
if [ "$REPO_DIR" == "pyproj" ]; then
pwd
Expand Down
2 changes: 1 addition & 1 deletion multibuild/osx_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function macpython_sdk_list_for_version {
local _return

if [ "$(uname -m)" = "arm64" ]; then
_return="11.0"
_return="13.0"
elif [ "$_major" -eq "2" ]; then
[ $(lex_ver $_ver) -lt $(lex_ver 2.7.18) ] && _return="10.6"
[ $(lex_ver $_ver) -ge $(lex_ver 2.7.15) ] && _return="$_return 10.9"
Expand Down

0 comments on commit 7ace34c

Please sign in to comment.