Skip to content

Deprecated modules #2005

@pcotret

Description

@pcotret

pkg_resources

https://github.com/capstone-engine/capstone/blob/master/bindings/python/capstone/__init__.py#L269
https://discuss.python.org/t/deprecating-importlib-resources-legacy-api/11386

pkg_resources seems to be deprecated from Python 3.9.

distutils

https://peps.python.org/pep-0632/

distutils is deprecated since Python 3.10 and no longer installed in Python 3.12 (https://docs.python.org/3.12/whatsnew/3.12.html).

For instance, it's used in Python bindings:
https://github.com/capstone-engine/capstone/blob/next/bindings/python/capstone/__init__.py#L346

Discussion

Should we just put a warning somewhere like "works with Python x.xx" or maybe thinking about an alternative for these modules?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions