Skip to content

Commit 175cf4c

Browse files
author
Jeff Whitaker
committed
comment out functions over-ridden by h5py-wheels
1 parent ea21169 commit 175cf4c

File tree

1 file changed

+39
-37
lines changed

1 file changed

+39
-37
lines changed

config.sh

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,46 @@ export CURL_VERSION="7.75.0"
1616

1717
#source h5py-wheels/config.sh
1818

19-
function build_wheel {
20-
if [ -z "$IS_OSX" ]; then
21-
build_linux_wheel $@
22-
else
23-
build_osx_wheel $@
24-
fi
25-
}
26-
27-
function build_linux_wheel {
28-
source multibuild/library_builders.sh
29-
build_libs
30-
# Add workaround for auditwheel bug:
31-
# https://github.com/pypa/auditwheel/issues/29
32-
local bad_lib="/usr/local/lib/libhdf5.so"
33-
if [ -z "$(readelf --dynamic $bad_lib | grep RUNPATH)" ]; then
34-
patchelf --set-rpath $(dirname $bad_lib) $bad_lib
35-
fi
36-
build_pip_wheel $@
37-
}
19+
# copied from h5py-wheels/config.sh
3820

39-
function build_osx_wheel {
40-
local repo_dir=${1:-$REPO_DIR}
41-
export CC=clang
42-
export CXX=clang++
43-
install_pkg_config
44-
# Build libraries
45-
source multibuild/library_builders.sh
46-
export ARCH_FLAGS="-arch x86_64"
47-
export CFLAGS=$ARCH_FLAGS
48-
export CXXFLAGS=$ARCH_FLAGS
49-
export FFLAGS=$ARCH_FLAGS
50-
export LDFLAGS=$ARCH_FLAGS
51-
build_libs
52-
# Build wheel
53-
export LDFLAGS="$ARCH_FLAGS -Wall -undefined dynamic_lookup -bundle"
54-
export LDSHARED="$CC $LDFLAGS"
55-
build_pip_wheel "$repo_dir"
56-
}
21+
#function build_wheel {
22+
# if [ -z "$IS_OSX" ]; then
23+
# build_linux_wheel $@
24+
# else
25+
# build_osx_wheel $@
26+
# fi
27+
#}
28+
#
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+
#}
40+
#
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+
#}
5759

5860
function build_curl2 {
5961
if [ -e curl-stamp ]; then return; fi

0 commit comments

Comments
 (0)