feat: add dockerfile output for Python builds#1242
Merged
Conversation
AbhinavPradeep
commented
Nov 24, 2025
behnazh-w
reviewed
Nov 24, 2025
61a5195 to
853852b
Compare
behnazh-w
reviewed
Nov 27, 2025
behnazh-w
reviewed
Nov 28, 2025
behnazh-w
left a comment
Member
There was a problem hiding this comment.
Please add an integration test for the docker package used in the tutorial, and use the tutorial tag. For now, we can just compare the dockerfile output with the expected Dockerfile.
fac36f4 to
98a9b5e
Compare
behnazh-w
approved these changes
Dec 3, 2025
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
…ion. Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
…us warnings. Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
c6dd99b to
1db6614
Compare
behnazh-w
approved these changes
Dec 3, 2025
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.
Summary
Adds option "dockerfile" to the --output-format flag for gen-build-spec. For Python packages, it generates a dockerfile built on the
oraclelinux:9image to rebuild the package.Description of changes
build_spec_generator.pyto add functionality to infer the latest Python interpreter version satisfying the packages constraints, and generate a dockerfile that would build that Python interpreter from source. The dockerfile then proceeds to use that built interpreter to build the package itself.