Skip to content

Use of importlib.resources for Python versions over 3.12. pkg_resources kept for older Python versions.#123

Open
sizuhe wants to merge 1 commit intoiamaisim:mainfrom
sizuhe:pkg_resources-for-python-312
Open

Use of importlib.resources for Python versions over 3.12. pkg_resources kept for older Python versions.#123
sizuhe wants to merge 1 commit intoiamaisim:mainfrom
sizuhe:pkg_resources-for-python-312

Conversation

@sizuhe
Copy link

@sizuhe sizuhe commented Mar 6, 2026

…>= 3.12 and uses pkg_resources for older Python versions.

About

pkg_resources is deprecated for Python versions >3.12.

If using Python version >= 3.12, utils.py uses importlib.resources. pkg_resources use is kept for older Python versions.

How Has This Been Tested?

Tested on Ubuntu 24.04.3 LTS using pre-built binary environments with Python 3.12.3.

Screenshots and videos (if appropriate):

…>= 3.12 and uses `pkg_resources` for older Python versions.
@sizuhe sizuhe changed the title utils.py uses importlib.resources if Python version is >= 3.12, pkg_resources kept for older Python versions. Use of mportlib.resources for Python versions over 3.12. pkg_resources kept for older Python versions. Mar 6, 2026
@sizuhe sizuhe changed the title Use of mportlib.resources for Python versions over 3.12. pkg_resources kept for older Python versions. Use of importlib.resources for Python versions over 3.12. pkg_resources kept for older Python versions. Mar 6, 2026
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.

1 participant