Skip to content

Commit ec21d09

Browse files
committed
Build for macos
1 parent 5500277 commit ec21d09

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ 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+
RUN \
98+
DOWNLOAD_URL="https://ftp.postgresql.org/pub/source/v{{version}}/postgresql-{{version}}.tar.bz2" \
99+
VERSION="16.0" \
100+
SHA256="df9e823eb22330444e1d48e52cc65135a652a6fdb3ce325e3f08549339f51b99" \
101+
RELATIVE_PATH="postgresql-{{version}}" \
102+
bash install-from-source.sh --without-readline --with-openssl --without-icu
103+
# Add paths to pg_config and to the library
104+
ENV PATH="/usr/local/pgsql/bin:${PATH}"
105+
ENV LD_LIBRARY_PATH="/usr/local/pgsql/lib/:${LD_LIBRARY_PATH}"
106+
96107
# Dependencies needed to build librdkafka (and thus, confluent-kafka) with kerberos support
97108
DOWNLOAD_URL="https://github.com/LMDB/lmdb/archive/LMDB_{{version}}.tar.gz" \
98109
VERSION="0.9.29" \

0 commit comments

Comments
 (0)