Skip to content

Commit

Permalink
Declare hidden imports for pyinstaller. Closes python#101.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 30, 2020
1 parent 9342877 commit 8858e74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ v2.0.2
======

* Package now always includes its data. Closes #93.
* Declare hidden imports for PyInstaller. Closes #101.

v2.0.1
======
Expand Down
5 changes: 5 additions & 0 deletions hook-importlib_resources.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Used by pyinstaller to expose hidden imports

# Remove when trees module is removed. Ref #101.

hiddenimports = ['importlib_resources.trees']
3 changes: 2 additions & 1 deletion importlib_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
as_file, files,
)

# for compatibility. Ref #88
# For compatibility. Ref #88.
# Also requires hook-importlib_resources.py (Ref #101).
__import__('importlib_resources.trees')


Expand Down

0 comments on commit 8858e74

Please sign in to comment.