Skip to content
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

ENH: provide a convenience function to replace npy_load_module #20467

Merged
merged 1 commit into from Nov 26, 2021

Conversation

charris
Copy link
Member

@charris charris commented Nov 25, 2021

Backport of #20395.

load_module[is deprecated](https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module) since python 3.4 and will be removed in python 3.12. Useexec_moduleinstead. Provide a convenience function indistutils.misc_utilsinstead ofnpy_load_modulefromcompat.py3k`.

This PR was triggered by deprecation warnings in python 3.10.

@charris charris added 01 - Enhancement 08 - Backport Used to tag backport PRs labels Nov 25, 2021
@charris charris added this to the 1.21.5 release milestone Nov 25, 2021
…#20395)

`load_module` is deprecated since python 3.4 and will be removed in python 3.12.
Use `exec_module` instead. Provide a convenience function in `distutils.misc_utils`
instead of `npy_load_module` from `compat.py3k`.
@charris charris merged commit f326832 into numpy:maintenance/1.21.x Nov 26, 2021
@charris charris deleted the backport-20395 branch November 26, 2021 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - Enhancement 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants