Skip to content

Commit 0b386d2

Browse files
committed
wheels: fixed build, downgraded to manylinux2014 (needed for ubuntu 20.04 compat)
1 parent 88b125c commit 0b386d2

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
CIBW_BEFORE_ALL_MACOS: >
4040
brew tap fbkarsdorp/homebrew-lamachine &&
4141
brew install frog
42-
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux_2_28_x86_64
42+
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64
4343
CIBW_SKIP: "*-win* *-manylinux_i686 pp*"
4444

4545
- uses: actions/upload-artifact@v3

build-deps.sh

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,24 @@ if [ "$ID" = "almalinux" ] && [ -d /usr/local/share/aclocal ]; then
2626
export ACLOCAL_PATH=/usr/share/aclocal
2727
fi
2828
if [ "$ID" = "almalinux" ] || [ "$ID" = "centos" ] || [ "$ID" = "rhel" ]; then
29-
#they forgot to package libexttextcat-devel? grab one manually:
30-
wget https://github.com/proycon/LaMachine/raw/master/deps/centos8/libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
31-
yum install -y libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
29+
if [ "$VERSION_ID" = "7" ]; then
30+
yum install -y libexttextcat-devel
31+
if [ -d /opt/rh/devtoolset-10/root/usr/lib ]; then
32+
#we are running in the manylinux2014 image
33+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/opt/rh/devtoolset-10/root/usr/lib
34+
#libxml2 is out of date, compile and install a new one
35+
yum install -y xz
36+
wget https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.14.tar.xz
37+
unxz libxml2-2.9.14.tar.xz
38+
tar -xf libxml2-2.9.14.tar
39+
cd libxml2-2.9.14 && ./configure --prefix=/usr/ --without-python && make && make install
40+
cd ..
41+
fi
42+
elif [ "$VERSION_ID" = "8" ]; then
43+
#they forgot to package libexttextcat-devel? grab one manually:
44+
wget https://github.com/proycon/LaMachine/raw/master/deps/centos8/libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
45+
yum install -y libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
46+
fi
3247
fi
3348

3449
[ -z "$PREFIX" ] && PREFIX="/usr/local/"

0 commit comments

Comments
 (0)