From: Daniele Varrazzo Date: Mon, 13 Jun 2022 00:01:57 +0000 (+0200) Subject: build: build the libpq from source when building wheels on centos platform X-Git-Tag: 3.1~57^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4772c75872c31930e26f18f258b771b1f86dbd3e;p=thirdparty%2Fpsycopg.git build: build the libpq from source when building wheels on centos platform --- diff --git a/tools/build/print_so_versions.sh b/tools/build/print_so_versions.sh index 316cb7d33..a3c4ecdce 100755 --- a/tools/build/print_so_versions.sh +++ b/tools/build/print_so_versions.sh @@ -26,6 +26,10 @@ case "$ID" in done) | sort | uniq ;; + centos) + echo "TODO!" + ;; + *) echo "$0: unexpected Linux distribution: '$ID'" >&2 exit 1 diff --git a/tools/build/wheel_linux_before_all.sh b/tools/build/wheel_linux_before_all.sh index 0395712ac..3426fa31f 100755 --- a/tools/build/wheel_linux_before_all.sh +++ b/tools/build/wheel_linux_before_all.sh @@ -6,6 +6,8 @@ set -euo pipefail set -x +dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + source /etc/os-release # Install PostgreSQL development files. @@ -34,6 +36,10 @@ case "$ID" in apt-get -y install libpq-dev ;; + centos) + "${dir}/build_libpq.sh" > /dev/null + ;; + *) echo "$0: unexpected Linux distribution: '$ID'" >&2 exit 1