Author frenzy
Recipients frenzy, hroncok, petr.viktorin
Date 2021-06-09.07:33:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623224006.36.0.401288111218.issue44351@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the report.

The regression is caused by the fact that the old implementation of parse_makefile in distutils.sysconfig was using feature-rich class TextFile which handles all the functionalities you reported as broken - stripping of comments, joining lines, and more.

The new implementation of parse_makefile in sysconfig just reads all the lines without any processing.

The TextFile class is deprecated together with the whole distutils. The class is not used outside of distutils modules, only in these functions:

distutils.extension:read_setup_file
distutils.sdist:read_template
+ its tests in distutils/tests/test_text_file.py

If the functionality is something we want to preserve, we should find a new home for the class and then we can use it in the sysconfig module.
History
Date User Action Args
2021-06-09 07:33:26frenzysetrecipients: + frenzy, petr.viktorin, hroncok
2021-06-09 07:33:26frenzysetmessageid: <1623224006.36.0.401288111218.issue44351@roundup.psfhosted.org>
2021-06-09 07:33:26frenzylinkissue44351 messages
2021-06-09 07:33:25frenzycreate