This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: ensurepip: tries to use
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.9, Python 3.8
Status: closed Resolution: duplicate
Dependencies: Superseder: ensurepip fails if cwd contains illformed
View: 42050
Assigned To: Nosy List: con-f-use, ned.deily
Priority: normal Keywords:

Created on 2021-01-27 13:04 by con-f-use, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit
shell-session.txt con-f-use, 2021-01-27 13:04
Messages (2)
msg385767 - (view) Author: Jan Christoph (con-f-use) * Date: 2021-01-27 13:04

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

in a directory that contains a setup.cfg / 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.
msg385786 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-01-27 16:01
Thanks for the report. This behavior has been reported in open issue issue42050. Feel free to add to the discussion there.
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87204
2021-01-27 16:01:11ned.deilysetstatus: open -> closed

superseder: ensurepip fails if cwd contains illformed

nosy: + ned.deily
messages: + msg385786
resolution: duplicate
stage: resolved
2021-01-27 13:04:57con-f-usecreate