Skip to content

Commit ee6513b

Browse files
author
Jeff Whitaker
committed
build brotli and libnghttp2
1 parent a78c157 commit ee6513b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

config.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export OPENSSL_ROOT=openssl-1.0.2u
1212
export OPENSSL_HASH=ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16
1313
export CURL_VERSION="7.75.0"
1414
export LIBNGHTTP2_VERSION="1.43.0"
15+
export BROTLI_VERSION="1.0.9"
1516

1617
source h5py-wheels/config.sh
1718

@@ -40,7 +41,8 @@ function build_curl {
4041
#fi
4142
flags="$flags --with-ssl --without-brotli --without--libnghttp2"
4243
build_openssl
43-
#build_libnghttp2
44+
build_libnghttp2
45+
build_brotli
4446
fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz
4547
(cd curl-${CURL_VERSION} \
4648
&& if [ -z "$IS_MACOS" ]; then \
@@ -61,6 +63,16 @@ function build_libnghttp2 {
6163
touch libnghttp2-stamp
6264
}
6365

66+
function build_brotli {
67+
if [ -e brotli-stamp ]; then return; fi
68+
fetch_unpack https://github.com/google/brotli/archive/v${BROTLI_VERSION}/v${BROTLI_VERSION}.tar.gz
69+
(cd brotli-${BROTLI_VERSIONN} \
70+
&& ./configure-cmake --prefix=$BUILD_PREFIX --enable-shared \
71+
&& make \
72+
&& make install)
73+
touch brotli-stamp
74+
}
75+
6476
function run_tests {
6577
# Runs tests on installed distribution from an empty directory
6678
cp ../netcdf4-python/test/* .

0 commit comments

Comments
 (0)