Skip to content

Commit b033941

Browse files
committed
Build for macos
1 parent 5500277 commit b033941

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.builders/images/macos-x86_64/builder_setup.sh

+10
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ RELATIVE_PATH="curl-{{version}}" \
9393
# Remove the binary installed so that we consistenly use the same original `curl` binary
9494
rm "${DD_PREFIX_PATH}/bin/curl"
9595

96+
# libpq and pg_config as needed by psycopg
97+
DOWNLOAD_URL="https://ftp.postgresql.org/pub/source/v{{version}}/postgresql-{{version}}.tar.bz2" \
98+
VERSION="16.0" \
99+
SHA256="df9e823eb22330444e1d48e52cc65135a652a6fdb3ce325e3f08549339f51b99" \
100+
RELATIVE_PATH="postgresql-{{version}}" \
101+
install-from-source --without-readline --with-openssl --without-icu
102+
# Add paths to pg_config and to the library
103+
echo PATH="/usr/local/pgsql/bin:${PATH}" >> $DD_ENV_FILE
104+
echo LD_LIBRARY_PATH="/usr/local/pgsql/lib/:${LD_LIBRARY_PATH}" >> $DD_ENV_FILE
105+
96106
# Dependencies needed to build librdkafka (and thus, confluent-kafka) with kerberos support
97107
DOWNLOAD_URL="https://github.com/LMDB/lmdb/archive/LMDB_{{version}}.tar.gz" \
98108
VERSION="0.9.29" \

0 commit comments

Comments
 (0)