Skip to content

Commit 80288c8

Browse files
committed
update
1 parent 5498fb8 commit 80288c8

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

config.sh

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function build_libs {
1717
build_hdf5
1818
if [ -z "$IS_OSX" ]; then
1919
build_curl
20+
else
21+
touch curl-stamp
2022
fi
2123
if [ -z "$IS_OSX" ] && [ $MB_ML_VER -eq 1 ]; then
2224
export CFLAGS="-std=gnu99 -Wl,-strip-all"
@@ -30,30 +32,7 @@ function pip_opts {
3032

3133
function run_tests {
3234
# Runs tests on installed distribution from an empty directory
33-
URL="http://remotetest.unidata.ucar.edu/thredds/dodsC/testdods/testData.nc"
34-
URL_https="https://podaac-opendap.jpl.nasa.gov/opendap/allData/modis/L3/aqua/11um/v2014.0/4km/daily/2017/365/A2017365.L3m_DAY_NSST_sst_4km.nc"
35-
/usr/local/bin/ncdump -h $URL
36-
/usr/local/bin/ncdump -h $URL_https
3735
cp ../netcdf4-python/test/* .
3836
python run_all.py
3937
}
4038

41-
42-
function build_curl {
43-
if [ -e curl-stamp ]; then return; fi
44-
local flags="--prefix=$BUILD_PREFIX"
45-
if [ -n "$IS_OSX" ]; then
46-
flags="$flags --with-darwinssl"
47-
else # manylinux
48-
flags="$flags --with-ssl"
49-
build_openssl
50-
fi
51-
fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz
52-
(cd curl-${CURL_VERSION} \
53-
&& if [ -z "$IS_OSX" ]; then \
54-
LIBS=-ldl ./configure $flags; else \
55-
env PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig ./configure $flags; fi\
56-
&& make -j4 \
57-
&& make install)
58-
touch curl-stamp
59-
}

0 commit comments

Comments
 (0)