from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata('z3c.rml')

# This really doesn't belong here, but is better than hacking PyInstaller's "hook-google.api_core.py" which
# is missing this. Without it, we get a "pkg_resources.DistributionNotFound" runtime error saying:
#    The 'google-api-python-client' distribution was not found and is required by the application
datas += copy_metadata('google-api-python-client')

# And these are needed on Windows, for some reason.
datas += copy_metadata('backports.tempfile')
datas += copy_metadata('lxml')
datas += copy_metadata('pygments')
datas += copy_metadata('PyPDF2')
datas += copy_metadata('reportlab')
datas += copy_metadata('setuptools')
datas += copy_metadata('six')
datas += copy_metadata('zope.interface')
datas += copy_metadata('zope.schema')

from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata('z3c.rml')

# This really doesn't belong here, but is better than hacking PyInstaller's "hook-google.api_core.py" which
# is missing this. Without it, we get a "pkg_resources.DistributionNotFound" runtime error saying:
#    The 'google-api-python-client' distribution was not found and is required by the application
datas += copy_metadata('google-api-python-client')

# And these are needed on Windows, for some reason.
datas += copy_metadata('backports.tempfile')
datas += copy_metadata('lxml')
datas += copy_metadata('pygments')
datas += copy_metadata('PyPDF2')
datas += copy_metadata('reportlab')
datas += copy_metadata('setuptools')
datas += copy_metadata('six')
datas += copy_metadata('zope.interface')
datas += copy_metadata('zope.schema')

# This really doesn't belong here, but is better than hacking PyInstaller's "hook-google.api_core.py" which # is missing this. Without it, we get a "pkg_resources.DistributionNotFound" runtime error saying: #    The 'google-api-python-client' distribution was not found and is required by the application # And these are needed on Windows, for some reason.