Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
hooks: Update pkg_resources hook for setuptools v45.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
htgoebel authored and gozdal committed May 12, 2020
1 parent d19ee04 commit 6053d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PyInstaller/hooks/hook-pkg_resources.py
Expand Up @@ -12,4 +12,9 @@
# sys.meta_path based import magic to expose them as pkg_resources.extern.*
hiddenimports = collect_submodules('pkg_resources._vendor')

# pkg_resources v45.0 dropped support for Python 2 and added this
# module printing a warning. We could save some bytes if we would
# replace this by a fake module.
hiddenimports.append('pkg_resources.py2_warn')

excludedimports = ['__main__']
1 change: 1 addition & 0 deletions news/setuptools45.hooks.rst
@@ -0,0 +1 @@
Update pkg_resources hook for setuptools v45.0.0.

0 comments on commit 6053d93

Please sign in to comment.