Skip to content

Commit cb6ba3f

Browse files
authored
Add Almalinux to manywheel build script (#1818)
1 parent ac9a12e commit cb6ba3f

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

manywheel/build_common.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ retry () {
2525
OS_NAME=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
2626
if [[ "$OS_NAME" == *"CentOS Linux"* ]]; then
2727
retry yum install -q -y zip openssl
28+
elif [[ "$OS_NAME" == *"AlmaLinux"* ]]; then
29+
retry yum install -q -y zip openssl
2830
elif [[ "$OS_NAME" == *"Red Hat Enterprise Linux"* ]]; then
2931
retry dnf install -q -y zip openssl
3032
elif [[ "$OS_NAME" == *"Ubuntu"* ]]; then

manywheel/build_cpu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ if [[ "$OS_NAME" == *"CentOS Linux"* ]]; then
3131
LIBGOMP_PATH="/usr/lib64/libgomp.so.1"
3232
elif [[ "$OS_NAME" == *"Red Hat Enterprise Linux"* ]]; then
3333
LIBGOMP_PATH="/usr/lib64/libgomp.so.1"
34+
elif [[ "$OS_NAME" == *"AlmaLinux"* ]]; then
35+
LIBGOMP_PATH="/usr/lib64/libgomp.so.1"
3436
elif [[ "$OS_NAME" == *"Ubuntu"* ]]; then
3537
if [[ "$(uname -m)" == "s390x" ]]; then
3638
LIBGOMP_PATH="/usr/lib/s390x-linux-gnu/libgomp.so.1"

manywheel/build_cuda.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ mkdir -p "$PYTORCH_FINAL_PACKAGE_DIR" || true
113113
OS_NAME=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
114114
if [[ "$OS_NAME" == *"CentOS Linux"* ]]; then
115115
LIBGOMP_PATH="/usr/lib64/libgomp.so.1"
116+
elif [[ "$OS_NAME" == *"AlmaLinux"* ]]; then
117+
LIBGOMP_PATH="/usr/lib64/libgomp.so.1"
116118
elif [[ "$OS_NAME" == *"Red Hat Enterprise Linux"* ]]; then
117119
LIBGOMP_PATH="/usr/lib64/libgomp.so.1"
118120
elif [[ "$OS_NAME" == *"Ubuntu"* ]]; then

manywheel/build_libtorch.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ retry () {
2424
OS_NAME=`awk -F= '/^NAME/{print $2}' /etc/os-release`
2525
if [[ "$OS_NAME" == *"CentOS Linux"* ]]; then
2626
retry yum install -q -y zip openssl
27+
elif [[ "$OS_NAME" == *"AlmaLinux"* ]]; then
28+
retry yum install -q -y zip openssl
2729
elif [[ "$OS_NAME" == *"Red Hat Enterprise Linux"* ]]; then
2830
retry dnf install -q -y zip openssl
2931
elif [[ "$OS_NAME" == *"Ubuntu"* ]]; then
@@ -278,7 +280,7 @@ for pkg in /$LIBTORCH_HOUSE_DIR/libtorch*.zip; do
278280
if [[ "$filepath" != "$destpath" ]]; then
279281
cp $filepath $destpath
280282
fi
281-
283+
282284
if [[ "$DESIRED_CUDA" == *"rocm"* ]]; then
283285
patchedpath=$(fname_without_so_number $destpath)
284286
else
@@ -299,7 +301,7 @@ for pkg in /$LIBTORCH_HOUSE_DIR/libtorch*.zip; do
299301
patchedname=${patched[i]}
300302
if [[ "$origname" != "$patchedname" ]] || [[ "$DESIRED_CUDA" == *"rocm"* ]]; then
301303
set +e
302-
origname=$($PATCHELF_BIN --print-needed $sofile | grep "$origname.*")
304+
origname=$($PATCHELF_BIN --print-needed $sofile | grep "$origname.*")
303305
ERRCODE=$?
304306
set -e
305307
if [ "$ERRCODE" -eq "0" ]; then

0 commit comments

Comments
 (0)