Skip to content

[3.13] gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357)#146535

Merged
vstinner merged 1 commit intopython:3.13from
miss-islington:backport-73cc1fd-3.13
Mar 27, 2026
Merged

[3.13] gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357)#146535
vstinner merged 1 commit intopython:3.13from
miss-islington:backport-73cc1fd-3.13

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Mar 27, 2026

Path('') resolves to CWD, so an empty WHEEL_PKG_DIR string caused
ensurepip to search the current working directory for wheel files.
Add a truthiness check to treat empty strings the same as None.
(cherry picked from commit 73cc1fd)

Co-authored-by: Imgyu Kim kimimgo@gmail.com
Co-authored-by: Victor Stinner vstinner@python.org

…ythonGH-146357)

Path('') resolves to CWD, so an empty WHEEL_PKG_DIR string caused
ensurepip to search the current working directory for wheel files.
Add a truthiness check to treat empty strings the same as None.
(cherry picked from commit 73cc1fd)

Co-authored-by: Imgyu Kim <kimimgo@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner vstinner enabled auto-merge (squash) March 27, 2026 21:00
@vstinner vstinner merged commit 78b8716 into python:3.13 Mar 27, 2026
43 checks passed
@miss-islington miss-islington deleted the backport-73cc1fd-3.13 branch March 27, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants