Skip to content

Commit 5d90c92

Browse files
committed
python libs dependency
1 parent c6c668a commit 5d90c92

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

eng/pipelines/pr-validation-pipeline.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,14 @@ jobs:
421421
- script: |
422422
# Install dependencies in the RHEL 9 container
423423
docker exec test-container-rhel9 bash -c "
424+
# Enable CodeReady Builder repository for additional packages
424425
dnf update -y
425-
dnf groupinstall -y "Development Tools"
426-
dnf install -y curl --allowerasing
426+
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
427+
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms || dnf config-manager --set-enabled ubi-9-codeready-builder
428+
427429
# Install Python 3.9 (available in RHEL 9 UBI) and development tools
428430
dnf install -y python3 python3-pip python3-devel cmake curl wget gnupg2 glibc-devel kernel-headers
431+
dnf install -y python3-libs python3-debug
429432
dnf install -y gcc gcc-c++ make binutils
430433
dnf install -y cmake
431434
# If that doesn't work, try installing from different repositories
@@ -449,6 +452,22 @@ jobs:
449452
which g++ || echo 'G++ not found'
450453
gcc --version || echo 'GCC version check failed'
451454
g++ --version || echo 'G++ version check failed'
455+
456+
# Set compiler environment variables
457+
export CC=/usr/bin/gcc
458+
export CXX=/usr/bin/g++
459+
echo 'CC set to:' \$CC
460+
echo 'CXX set to:' \$CXX
461+
462+
# Create a wrapper script to preserve environment
463+
cat > /workspace/setup_env.sh << 'EOF'
464+
#!/bin/bash
465+
export CC=/usr/bin/gcc
466+
export CXX=/usr/bin/g++
467+
export PATH=/usr/bin:\$PATH
468+
exec \"\$@\"
469+
EOF
470+
chmod +x /workspace/setup_env.sh
452471
"
453472
displayName: 'Verify and configure compilers in RHEL 9 container'
454473

0 commit comments

Comments
 (0)