[New-bugs-announce] [issue43038] ensurepip: tries to use setup.py/setup.cfg

Jan Christoph report at bugs.python.org
Wed Jan 27 08:04:57 EST 2021


New submission from Jan Christoph <con-f-use at gmx.net>:

Running

python3 -Im ensurepip --upgrade --default-pip

in a directory that contains a setup.cfg / setup.py combination, caused ensurepip to try and use these files, leading to

distutils.errors.DistutilsOptionError: error in setup.cfg: command 'build' has no such option 'icons'

A full shell session is attached that contains details on the exact files and python version involved involved.

I was under the impression ensurepip simply ensured that a suitable version of pip is installed with my Python distribution in use.

----------
components: Library (Lib)
files: shell-session.txt
messages: 385767
nosy: con-f-use
priority: normal
severity: normal
status: open
title: ensurepip: tries to use setup.py/setup.cfg
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49768/shell-session.txt

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43038>
_______________________________________


More information about the New-bugs-announce mailing list