Author htgoebel
Recipients htgoebel
Date 2020-10-16.08:27:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602836843.13.0.778924482006.issue42050@roundup.psfhosted.org>
In-reply-to
Content
If the current directory contains a ill-formed setup.cfg, setting up a virtual env fails, caused by ensurepip failing:

Expected behaviour:
running ensurepip should completely ignore the content of the current working directory.

How to reproduce:

$ rm -rf /tmp/v2
$ mkdir /tmp/v2
$ cd /tmp/v2
$ cat > setup.cfg <<EOF
> [options]
> setuptools_requires
> EOF
$ python3 -m venv /tmp/v2/_venv
Error: Command '['/tmp/v2/_venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 2.
$ /tmp/v2/_venv/bin/python3 -Im ensurepip --upgrade --default-pip
Looking in links: /tmp/tmpimoh6tke
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Exception:
…
configparser.ParsingError: Source contains parsing errors: 'setup.cfg'
        [line  2]: 'setuptools_requires\n'


Environment:
Tested with both Python 3.8.2 and 3.7.6
History
Date User Action Args
2020-10-16 08:27:23htgoebelsetrecipients: + htgoebel
2020-10-16 08:27:23htgoebelsetmessageid: <1602836843.13.0.778924482006.issue42050@roundup.psfhosted.org>
2020-10-16 08:27:23htgoebellinkissue42050 messages
2020-10-16 08:27:22htgoebelcreate