Skip to content

Commit cb2321d

Browse files
committed
wheels broke again? try install libxml2 in same prefix as the rest
1 parent 06f6af1 commit cb2321d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-deps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ get_latest_version() {
2121
fi
2222
}
2323

24+
[ -z "$PREFIX" ] && PREFIX="/usr/local/"
2425
if [ "$ID" = "almalinux" ] || [ "$ID" = "centos" ] || [ "$ID" = "rhel" ]; then
2526
if [ -d /usr/local/share/aclocal ]; then
2627
#needed for manylinux_2_28 container which ships custom autoconf, possibly others too?
@@ -36,7 +37,7 @@ if [ "$ID" = "almalinux" ] || [ "$ID" = "centos" ] || [ "$ID" = "rhel" ]; then
3637
wget https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.14.tar.xz
3738
unxz libxml2-2.9.14.tar.xz
3839
tar -xf libxml2-2.9.14.tar
39-
cd libxml2-2.9.14 && ./configure --prefix=/usr/ --without-python && make && make install
40+
cd libxml2-2.9.14 && ./configure --prefix=$PREFIX --without-python && make && make install
4041
cd ..
4142
fi
4243
elif [ "$VERSION_ID" = "8" ]; then
@@ -46,7 +47,6 @@ if [ "$ID" = "almalinux" ] || [ "$ID" = "centos" ] || [ "$ID" = "rhel" ]; then
4647
fi
4748
fi
4849

49-
[ -z "$PREFIX" ] && PREFIX="/usr/local/"
5050
PWD="$(pwd)"
5151
BUILDDIR="$(mktemp -dt "build-deps.XXXXXX")"
5252
cd "$BUILDDIR"

0 commit comments

Comments
 (0)