ci: wheel building update · proycon/python-frog@873ff9b · GitHub
Skip to content

Commit 873ff9b

Browse files
committed
ci: wheel building update
1 parent 02946db commit 873ff9b

3 files changed

Lines changed: 45 additions & 26 deletions

File tree

‎.github/workflows/wheels.yml‎

Lines changed: 21 additions & 6 deletions

‎build-deps.sh‎

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
set -e
88

99
. /etc/os-release
10+
echo "OS: $ID">&2
11+
echo "VERSION: $VERSION_ID">&2
1012

1113
get_latest_version() {
1214
#Finds the latest git tag or falls back to returning the git default branch (usually master or main)
@@ -27,24 +29,27 @@ if [ "$ID" = "almalinux" ] || [ "$ID" = "centos" ] || [ "$ID" = "rhel" ]; then
2729
#needed for manylinux_2_28 container which ships custom autoconf, possibly others too?
2830
export ACLOCAL_PATH=/usr/share/aclocal
2931
fi
30-
if [ "$VERSION_ID" = "7" ]; then
31-
yum install -y libexttextcat-devel
32-
if [ -d /opt/rh/devtoolset-10/root/usr/lib ]; then
33-
#we are running in the manylinux2014 image
34-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/opt/rh/devtoolset-10/root/usr/lib
35-
#libxml2 is out of date, compile and install a new one
36-
yum install -y xz
37-
wget https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.14.tar.xz
38-
unxz libxml2-2.9.14.tar.xz
39-
tar -xf libxml2-2.9.14.tar
40-
cd libxml2-2.9.14 && ./configure --prefix=$PREFIX --without-python && make && make install
41-
cd ..
42-
fi
43-
elif [ "$VERSION_ID" = "8" ]; then
44-
#they forgot to package libexttextcat-devel? grab one manually:
45-
wget https://github.com/proycon/LaMachine/raw/master/deps/centos8/libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
46-
yum install -y libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
47-
fi
32+
case $VERSION_ID in
33+
7*)
34+
yum install -y libexttextcat-devel
35+
if [ -d /opt/rh/devtoolset-10/root/usr/lib ]; then
36+
#we are running in the manylinux2014 image
37+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/opt/rh/devtoolset-10/root/usr/lib
38+
#libxml2 is out of date, compile and install a new one
39+
yum install -y xz
40+
wget https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.14.tar.xz
41+
unxz libxml2-2.9.14.tar.xz
42+
tar -xf libxml2-2.9.14.tar
43+
cd libxml2-2.9.14 && ./configure --prefix=$PREFIX --without-python && make && make install
44+
cd ..
45+
fi
46+
;;
47+
8*)
48+
#they forgot to package libexttextcat-devel? grab one manually:
49+
wget https://github.com/proycon/LaMachine/raw/master/deps/centos8/libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
50+
yum install -y libexttextcat-devel-3.4.5-2.el8.x86_64.rpm
51+
;;
52+
esac
4853
fi
4954

5055
PWD="$(pwd)"
@@ -77,5 +82,4 @@ for PACKAGE in LanguageMachines/ticcutils LanguageMachines/libfolia LanguageMach
7782
done
7883
cd $PWD
7984
[ -n "$BUILDDIR" ] && rm -Rf "$BUILDDIR"
80-
8185
echo "Dependencies installed" >&2

‎setup.py‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)