Skip to content

fix: Remove incorrect _restore_install_lib override (closes #2728)#5240

Open
botbikamordehai2-sketch wants to merge 1 commit into
pypa:mainfrom
botbikamordehai2-sketch:fix/issue-2728-1780830642
Open

fix: Remove incorrect _restore_install_lib override (closes #2728)#5240
botbikamordehai2-sketch wants to merge 1 commit into
pypa:mainfrom
botbikamordehai2-sketch:fix/issue-2728-1780830642

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

In v57.1.0, the custom install command install_with_pth overrides install_lib incorrectly, causing installation paths to be corrupted and leading to SSL/certificate errors during dependency resolution on Python 3.6 (especially on macOS/Windows). The _restore_install_lib method attempts to undo a secondary effect of extra_path but compares a path suffix with Python code, which never matches, thus always resetting install_lib to install_libbase.

Fix

Remove the _restore_install_lib method and its call in finalize_options. The extra_path mechanism does not actually require this correction; the original finalize_options from install already handles paths correctly.

Closes #2728

Comment thread setup.py
Comment on lines 44 to 45
def finalize_options(self):
install.finalize_options(self)

@Avasam Avasam Jun 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this override now only calls the parent, why not remove it ?

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.

[BUG] v57.1.0 on Python v3.6 SSL Errors

2 participants