From: Peter van Dijk Date: Thu, 25 Apr 2019 16:15:51 +0000 (+0200) Subject: macos pycurl: require curl-openssl from brew X-Git-Tag: rec-4.2.0-rc1~50^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e144f1d386150a7917bbca4a5d9939b8aa4f925;p=pdns macos pycurl: require curl-openssl from brew --- diff --git a/regression-tests.dnsdist/runtests b/regression-tests.dnsdist/runtests index e83d947c8..251e76a6a 100755 --- a/regression-tests.dnsdist/runtests +++ b/regression-tests.dnsdist/runtests @@ -16,7 +16,21 @@ if [ ! -d .venv ]; then fi . .venv/bin/activate python -V + +if [ `uname -s` == Darwin ] +then + if [ ! -e /usr/local/opt/curl-openssl ] + then + echo Please run: brew install curl-openssl, and try again + exit 1 + else + export PYCURL_CURL_CONFIG=/usr/local/opt/curl-openssl/bin/curl-config + export LDFLAGS=-L/usr/local/opt/openssl/lib + export CPPFLAGS=-I/usr/local/opt/openssl/include + fi +fi pip install -r requirements.txt + protoc -I=../pdns/ --python_out=. ../pdns/dnsmessage.proto protoc -I=../pdns/ --python_out=. ../pdns/dnstap.proto