-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staticx: Use importlib.resources over pkg_resources for asset access (#…
…274) pkg_resources is deprecated: https://setuptools.pypa.io/en/latest/pkg_resources.html This instead uses importlib.resources.files() (introduced in Python 3.9) and uses the backport importlib_resources for Python 3.7-3.8 (to be removed in #264, #265). This was chosen over the alternative of using the deprecated (as of Python 3.11) function importlib.resources.open_binary() (introduced in Python 3.7), since we already have techdebt to remove a related backport, which is preferable to upgrading from the deprecated API.
- Loading branch information
1 parent
77ccfa5
commit 2a8214e
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters