Skip to content

Commit 8858e74

Browse files
committed
Declare hidden imports for pyinstaller. Closes python#101.
1 parent 9342877 commit 8858e74

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ v2.0.2
66
======
77

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

1011
v2.0.1
1112
======

hook-importlib_resources.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Used by pyinstaller to expose hidden imports
2+
3+
# Remove when trees module is removed. Ref #101.
4+
5+
hiddenimports = ['importlib_resources.trees']

importlib_resources/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
as_file, files,
88
)
99

10-
# for compatibility. Ref #88
10+
# For compatibility. Ref #88.
11+
# Also requires hook-importlib_resources.py (Ref #101).
1112
__import__('importlib_resources.trees')
1213

1314

0 commit comments

Comments
 (0)