Skip to content

Commit 042c919

Browse files
author
Jeff Whitaker
authored
Update config.sh
1 parent e3ce58f commit 042c919

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

config.sh

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,44 @@ export CURL_VERSION="7.75.0"
1818

1919
# copied from h5py-wheels/config.sh
2020

21-
function build_wheel {
22-
if [ -z "$IS_OSX" ]; then
23-
build_linux_wheel $@
24-
else
25-
build_osx_wheel $@
26-
fi
27-
}
21+
#function build_wheel {
22+
# if [ -z "$IS_OSX" ]; then
23+
# build_linux_wheel $@
24+
# else
25+
# build_osx_wheel $@
26+
# fi
27+
#}
2828

29-
function build_linux_wheel {
30-
source multibuild/library_builders.sh
31-
build_libs
32-
# Add workaround for auditwheel bug:
33-
# https://github.com/pypa/auditwheel/issues/29
34-
local bad_lib="/usr/local/lib/libhdf5.so"
35-
if [ -z "$(readelf --dynamic $bad_lib | grep RUNPATH)" ]; then
36-
patchelf --set-rpath $(dirname $bad_lib) $bad_lib
37-
fi
38-
build_pip_wheel $@
39-
}
29+
#function build_linux_wheel {
30+
# source multibuild/library_builders.sh
31+
# build_libs
32+
# # Add workaround for auditwheel bug:
33+
# # https://github.com/pypa/auditwheel/issues/29
34+
# local bad_lib="/usr/local/lib/libhdf5.so"
35+
# if [ -z "$(readelf --dynamic $bad_lib | grep RUNPATH)" ]; then
36+
# patchelf --set-rpath $(dirname $bad_lib) $bad_lib
37+
# fi
38+
# build_pip_wheel $@
39+
#}
4040

41-
function build_osx_wheel {
42-
local repo_dir=${1:-$REPO_DIR}
43-
export CC=clang
44-
export CXX=clang++
45-
install_pkg_config
46-
# Build libraries
47-
source multibuild/library_builders.sh
48-
export ARCH_FLAGS="-arch x86_64"
49-
export CFLAGS=$ARCH_FLAGS
50-
export CXXFLAGS=$ARCH_FLAGS
51-
export FFLAGS=$ARCH_FLAGS
52-
export LDFLAGS=$ARCH_FLAGS
53-
build_libs
54-
# Build wheel
55-
export LDFLAGS="$ARCH_FLAGS -Wall -undefined dynamic_lookup -bundle"
56-
export LDSHARED="$CC $LDFLAGS"
57-
build_pip_wheel "$repo_dir"
58-
}
41+
#function build_osx_wheel {
42+
# local repo_dir=${1:-$REPO_DIR}
43+
# export CC=clang
44+
# export CXX=clang++
45+
# install_pkg_config
46+
# # Build libraries
47+
# source multibuild/library_builders.sh
48+
# export ARCH_FLAGS="-arch x86_64"
49+
# export CFLAGS=$ARCH_FLAGS
50+
# export CXXFLAGS=$ARCH_FLAGS
51+
# export FFLAGS=$ARCH_FLAGS
52+
# export LDFLAGS=$ARCH_FLAGS
53+
# build_libs
54+
# # Build wheel
55+
# export LDFLAGS="$ARCH_FLAGS -Wall -undefined dynamic_lookup -bundle"
56+
# export LDSHARED="$CC $LDFLAGS"
57+
# build_pip_wheel "$repo_dir"
58+
#}
5959

6060
function build_curl2 {
6161
if [ -e curl-stamp ]; then return; fi
@@ -86,11 +86,11 @@ function build_libs {
8686
build_netcdf
8787
}
8888

89-
#function pre_build {
90-
# # Any stuff that you need to do before you start building the wheels
91-
# # Runs in the root directory of this repository.
92-
# build_zlib
93-
#}
89+
function pre_build {
90+
# Any stuff that you need to do before you start building the wheels
91+
# Runs in the root directory of this repository.
92+
build_libs
93+
}
9494

9595
function run_tests {
9696
# Runs tests on installed distribution from an empty directory

0 commit comments

Comments
 (0)