Files
capa/ci/hooks/hook-vivisect.py
William Ballenthin 36afed2d22 pyinstaller working on linux/py2
closes #40
2020-07-01 17:35:18 -06:00

14 lines
497 B
Python

from PyInstaller.utils.hooks import copy_metadata
# in order for viv-utils to use pkg_resources to fetch
# the installed version of vivisect,
# we need to instruct pyinstaller to embed this metadata.
#
# so we set the pyinstaller.spec/hookspath to reference
# the directory with this hook.
#
# this hook runs at analysis time and updates the embedded metadata.
#
# ref: https://github.com/pyinstaller/pyinstaller/issues/1713#issuecomment-162682084
datas = copy_metadata('vivisect')