[New-bugs-announce] [issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

Axel Haustant report at bugs.python.org
Sat Dec 10 14:12:20 EST 2016


New submission from Axel Haustant:

Because of the Python 3.2 configparser renaming/refactoring, string interpolation has been enabled into distutils config parsing and so fails to read any setup.cfg with percent signs (try to perform string interpolation and fails).


To reproduce: create a project with a percent sign anywhere in the setup.cfg file and execute python setup.py egg_info.
It will pass on Python 2.x and fails on Python 3.x.

The attached patch suimply disable string interpolation in distutils config parsing.

That would be awesome to have this applied on any 3.x version (because project using tox to test against different Python versions also fails with the same issue Python 3.x and PyPI 3.x)

----------
components: Distutils
files: disable-distutils-string-interpolation.patch
keywords: patch
messages: 282865
nosy: Axel Haustant, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign
type: crash
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45839/disable-distutils-string-interpolation.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28935>
_______________________________________


More information about the New-bugs-announce mailing list