Skip to content

bpo-44351: Restore back parse_makefile in distutils.sysconfig #26637

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 1 commit into from
Jun 11, 2021

Conversation

frenzymadness
Copy link
Contributor

@frenzymadness frenzymadness commented Jun 10, 2021

The function uses distutils.text_file.TextFile and therefore
behaves differently than _parse_makefile in sysconfig.

This is a regression caused by a try to merge distutils.sysconfig and sysconfig in #23142

https://bugs.python.org/issue44351

The function uses distutils.text_file.TextFile and therefore
behaves differently than _parse_makefile in sysconfig.
Copy link
Contributor

@hroncok hroncok left a comment

Choose a reason for hiding this comment

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

The code is different than Python 3.9 code wrt. compiled re patterns / strings. The differences are reasonable. Other than that, it is a straight revert / restore.

I'd add a regression test, however this is distutils, so not a hard requirement.

Thank you.

@encukou encukou added the needs backport to 3.10 only security fixes label Jun 11, 2021
@encukou encukou merged commit fc98266 into python:main Jun 11, 2021
@miss-islington
Copy link
Contributor

Thanks @frenzymadness for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link

GH-26673 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 11, 2021
…GH-26637)

The function uses distutils.text_file.TextFile and therefore
behaves differently than _parse_makefile in sysconfig.
(cherry picked from commit fc98266)

Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
encukou pushed a commit that referenced this pull request Jun 15, 2021
…) (GH-26673)

The function uses distutils.text_file.TextFile and therefore
behaves differently than _parse_makefile in sysconfig.
(cherry picked from commit fc98266)

Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
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.

6 participants