Skip to content

Commit

Permalink
Added pyinstaller hook to include metadata files (required for linux j…
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brosche committed Feb 1, 2019
1 parent 1b12633 commit 5d687b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ $(EXE_FILES): $(MODULES) $(PROJECT).spec
poetry run pyinstaller $(PROJECT).spec --noconfirm --clean

$(PROJECT).spec:
poetry run pyi-makespec $(PACKAGE)/__main__.py --onefile --windowed --name=$(PROJECT)
poetry run pyi-makespec $(PACKAGE)/__main__.py --onefile --windowed --additional-hooks-dir=gitman --name=$(PROJECT)

# RELEASE #####################################################################

Expand Down
9 changes: 9 additions & 0 deletions gitman/hook-gitman.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# pyinstaller hook

from PyInstaller.utils.hooks import copy_metadata


# Normally PyInstaller does not include metadata files.
# necessary to find the 'gitman' distribution
# via the get_distribution function
datas = copy_metadata('gitman')

0 comments on commit 5d687b2

Please sign in to comment.