Add RHEL (x64) support for building Python packages#395
Open
priyagupta108 wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the Python package build/test pipeline to include RHEL (x64) targets, adding a dedicated RHEL builder, updating the workflow matrix to schedule RHEL jobs, and expanding manifest parsing/tests to recognize RHEL artifacts.
Changes:
- Added a
RhelPythonBuilderimplementation (dnf-based dependency setup + configure flags) and wired it into the build entrypoint. - Updated the GitHub Actions workflow matrix to include
rhel-9andrhel-10runners and install prerequisites on RHEL runners. - Updated manifest parsing/test cases to support RHEL platform versions without a minor component (e.g.,
9,10) and adjusted toolcache path expectations in config tests.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tests/sources/python-config-test.py |
Uses RUNNER_TOOL_CACHE as a fallback for toolcache path derivation. |
tests/python-tests.ps1 |
Runs the “nix-like” validation suite for RHEL platforms as well. |
tests/ManifestConfig.Tests.ps1 |
Adds stable/prerelease test cases for RHEL 9/10 artifacts (default + freethreaded). |
config/python-manifest-config.json |
Updates regex/group mapping to parse integer-only platform versions (e.g., 9, 10). |
builders/rhel-python-builder.psm1 |
New RHEL builder (configure + dnf-based dependency installation). |
builders/build-python.ps1 |
Selects RhelPythonBuilder when platform matches rhel. |
.github/workflows/build-python-packages.yml |
Adds RHEL platforms to the matrix and installs prerequisites on RHEL runners. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
priya-kinthali
approved these changes
Jun 8, 2026
gowridurgad
approved these changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for building and testing Python packages on RHEL (x64 architecture).