If you want to recycle fixes for a specific library then you can create a
hook <https://pyinstaller.readthedocs.io/en/stable/hooks.html> for it which
you can copy between projects. In this case it would be a file called
hook-pycountry.py containing:
from PyInstaller.utils.hooks import copy_metadata
datas = copy_metadata("pycountry")
Put it in the same folder as your main code and add --additional-hooks-dir=.
to your build command. (Note you must always use --clean when you
add/change a hook.) With this you can go back to using PyInstaller
my_code.py and ignore the spec file. If you prefer the spec then add '.' to
the hookspath=[].
Once your happy with it you may send the hook to the hooks repo
<http://github.com/pyinstaller/pyinstaller-hooks-contrib/> and it’ll be
included in the next release. Then all you’d have to do upgrade to the
latest release:
pip install -U pyinstaller-hooks-contrib
And you can forget about all of this…
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/d1bae006-1b69-412c-b33d-1d87b4b82f7an%40googlegroups.com.