File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99Unreleased
1010------------------
11+ Added
12+ - Added package-level PyInstaller hook.
1113
121412.0.0 - 2021-03-05
1315-------------------
Original file line number Diff line number Diff line change 1+ [options.entry_points]
2+ pyinstaller40 =
3+ hook-dirs = tcod.__pyinstaller:get_hook_dirs
4+
15[aliases]
26test =pytest
37
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def check_sdl_version():
130130 "Forum" : "https://github.com/libtcod/python-tcod/discussions" ,
131131 },
132132 py_modules = ["libtcodpy" ],
133- packages = ["tcod" ],
133+ packages = ["tcod" , "tcod.__pyinstaller" ],
134134 package_data = {"tcod" : get_package_data ()},
135135 python_requires = ">=3.6" ,
136136 install_requires = [
Original file line number Diff line number Diff line change 1+ """PyInstaller entry point for tcod."""
2+ import os
3+ from typing import List
4+
5+
6+ def get_hook_dirs () -> List [str ]:
7+ """Return the current directory."""
8+ return [os .path .dirname (__file__ )]
Original file line number Diff line number Diff line change 1+ """PyInstaller hook for tcod.
2+
3+ Added here after tcod 12.0.0.
4+
5+ If this hook is modified then the contributed hook needs to be removed from:
6+ https://github.com/pyinstaller/pyinstaller-hooks-contrib
7+ """
8+ from PyInstaller .utils .hooks import collect_dynamic_libs
9+
10+ hiddenimports = ["_cffi_backend" ]
11+
12+ # Install shared libraries to the working directory.
13+ binaries = collect_dynamic_libs ("tcod" )
You can’t perform that action at this time.
0 commit comments