Skip to content

Commit 6b7e858

Browse files
committed
Merge branch 'bugfix/101-pyinstaller-expose-trees' into 'master'
Declare hidden imports for pyinstaller Closes python#101 See merge request python-devs/importlib_resources!104
2 parents 9342877 + 8858e74 commit 6b7e858

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docs/changelog.rst

+1
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

+5
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

+2-1
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)