Skip to content

Improve typing of sysconfig.get_config_var(s) #11454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 22, 2024

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Feb 19, 2024

distutils.sysconfig.get_config_vars update is relevant for setuptools (pypa/setuptools#4228). I've updated get_config_var and all duplicates of these method as well.

This comment has been minimized.

@@ -15,11 +16,15 @@ __all__ = [
"parse_config_h",
]

@overload
@deprecated("SO is deprecated, use EXT_SUFFIX")
Copy link
Member

Choose a reason for hiding this comment

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

sysconfig.py doesn't mention this, can you link to where it's indicated that "SO" is deprecated?

Copy link
Collaborator Author

@Avasam Avasam Feb 20, 2024

Choose a reason for hiding this comment

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

Looks like support has been removed in Python 3.11
https://github.com/python/cpython/pull/91671/files#diff-d593bd299ba58e440ba411ffa0640ccd9d20d518b0cf2644ed4bdb75a82a3e70L670-L673

I'll add this to the deprecation comment now that I found the removal date.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, I only looked at the main branch.

This comment has been minimized.

This comment has been minimized.

@Avasam Avasam mentioned this pull request Feb 22, 2024
2 tasks
@Avasam Avasam requested a review from JelleZijlstra February 22, 2024 16:14
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 3c08a97 into python:main Feb 22, 2024
@Avasam Avasam deleted the improve-get_config_var(s) branch February 29, 2024 00:33
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.

2 participants