8000 Add support to patch sources after download by solvingj · Pull Request #60 · codrsquad/portable-python · GitHub
[go: up one dir, main page]

Skip to content

Add support to patch sources after download #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

solvingj
Copy link
@solvingj solvingj commented Feb 5, 2025

This feature enables us to address this issue in python's upstream configure scripts:

fixes #58

I know the readme says it's a guideline to not patch. I suppose that makes sense for the project not to patch anything out of the box. However, adding this feature seems reasonable and sensible.

if patches := self.cfg_patches():
for patch in patches:
if runez.DRYRUN:
print(f"Would apply patch: {patch}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: looks like patch_file() was naturally never called before in dryrun mode, but this could go in the patch_file() function itself (so that other places don't have to do/repeat if dryrun)

@zsimic
Copy link
Contributor
zsimic commented Feb 14, 2025

Agreed, sometimes you just have to patch :)
It's just something that is better avoided (maintenance nightmare).

@zsimic zsimic merged commit 28bcf94 into codrsquad:main Feb 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

checking for stdlib extension module _sqlite3... missing
2 participants
0