Skip to content

Commit

Permalink
wheels broke again? try install libxml2 in same prefix as the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jan 23, 2023
1 parent 06f6af1 commit cb2321d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ get_latest_version() {
fi
}

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

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

0 comments on commit cb2321d

Please sign in to comment.