1818 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/ usr/ local/ lib64/ pkgconfig:/ usr/ local/ lib/ pkgconfig}
1919fi
2020
21+ # compiling jpype1==1.5.0 requires g++ and this gets compiled on all platforms
22+ # gcc and g++ is present by default on registry.access.redhat.com/ubi9/python-312:latest
23+ dnf install -y --setopt=keepcache=1 gcc gcc-g++
24+
2125WHEELS_DIR=/wheelsdir
2226mkdir -p ${WHEELS_DIR}
2327if [[ $( uname -m) == " ppc64le" ]] || [[ $( uname -m) == " s390x" ]]; then
@@ -26,9 +30,12 @@ if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
2630 # install development packages
2731 dnf install -y --setopt=keepcache=1 https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
2832 # patchelf: needed by `auditwheel repair`
29- dnf install -y --setopt=keepcache=1 fribidi-devel gcc-toolset-13 lcms2-devel libimagequant-devel patchelf \
33+ dnf install -y --setopt=keepcache=1 fribidi-devel lcms2-devel libimagequant-devel patchelf \
3034 libraqm-devel openjpeg2-devel tcl-devel tk-devel unixODBC-devel
3135
36+ # previously we installed but never activated (added to PATH, etc.) the gcc-toolset-13, which suggests that maybe
37+ # regular gcc/g++ is just fine
38+
3239 # Install build tools and libraries needed for compiling PyTorch/PyArrow
3340 if [[ $( uname -m) == " s390x" ]]; then
3441 dnf install -y --setopt=keepcache=1 gcc gcc-gfortran gcc-c++ make cmake ninja-build \
@@ -122,7 +129,7 @@ if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
122129 # Pyarrow
123130 PYARROW_VERSION=$( grep -A1 ' "pyarrow"' pylock.toml | grep -Eo ' \b[0-9\.]+\b' )
124131 cd ${TMP}
125- git clone --depth 1 --branch " apache-arrow-${PYARROW_VERSION} " --recurse-submodules --shallow-submodules https://github.com/apache/arrow.git
132+ git clone --depth 1 --branch " apache-arrow-${PYARROW_VERSION} " --recurse-submodules --shallow-submodules https://github.com/apache/arrow.git
126133 cd arrow/cpp
127134 mkdir build && cd build && \
128135 # Set architecture-specific CMake flags
0 commit comments