forked from youngpm/gdalmanylinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Someware-fr/gdal-3
Gdal 3 support
- Loading branch information
Showing
4 changed files
with
75 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Build libpq for PG 12 | ||
# From https://github.com/psycopg/psycopg2-wheels | ||
|
||
POSTGRES_TAG="REL_12_5" | ||
POSTGRES_DIR="postgres-${POSTGRES_TAG}" | ||
if [ -d "${POSTGRES_DIR}" ]; then | ||
rm -rf "${POSTGRES_DIR}" | ||
fi | ||
|
||
curl -f -L -O https://github.com/postgres/postgres/archive/${POSTGRES_TAG}.tar.gz | ||
tar xzf ${POSTGRES_TAG}.tar.gz | ||
|
||
cd "${POSTGRES_DIR}" | ||
|
||
# Match the default unix socket dir default with what defined on Ubuntu and | ||
# Red Hat, which seems the most common location | ||
sed -i 's|#define DEFAULT_PGSOCKET_DIR .*'\ | ||
'|#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql"|' \ | ||
src/include/pg_config_manual.h | ||
|
||
./configure --prefix=/usr/local --without-readline \ | ||
--with-gssapi --with-openssl --with-pam --without-ldap | ||
make -j8 -C src/interfaces/libpq | ||
make -j8 -C src/bin/pg_config | ||
make -j8 -C src/include | ||
|
||
# Install libpq | ||
make -C src/interfaces/libpq install | ||
make -C src/bin/pg_config install | ||
# This will fail after installing postgres_fe.h, which is the bit we need | ||
make -C src/include install || true | ||
cd .. |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
# Howard Butler [email protected] | ||
|
||
|
||
gdal_version = '2.4.0' | ||
gdal_version = '3.1.4' | ||
|
||
import sys | ||
import shutil | ||
|
@@ -50,7 +50,7 @@ def copy_data_tree(datadir, destdir): | |
except OSError: | ||
pass | ||
shutil.copytree(datadir, destdir) | ||
|
||
# --------------------------------------------------------------------------- | ||
# Imports | ||
# --------------------------------------------------------------------------- | ||
|
@@ -271,7 +271,7 @@ def finalize_options(self): | |
|
||
packages = ["osgeo",] | ||
|
||
readme = str(open('README.txt','rb').read()) | ||
readme = ""#str(open('README.txt','rb').read()) | ||
|
||
name = 'GDAL' | ||
version = gdal_version | ||
|