Skip to content

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

Merged
encukou merged 1 commit into
python:mainfrom
frenzymadness:bpo-44351
Jun 11, 2021
Merged

encukou merged 1 commit into
python:mainfrom
frenzymadness:bpo-44351

Conversation

@frenzymadness

@frenzymadness frenzymadness commented Jun 10, 2021 •

Copy link
Copy Markdown
Contributor

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.

@hroncok hroncok left a comment

Copy link
Copy Markdown
Contributor

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.

@miss-islington

Copy link
Copy Markdown
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
Copy Markdown

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 <lbalhar@redhat.com>
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 <lbalhar@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants