From b2503d51789cde03078e8977ebc29604c51ff738 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 1 Apr 2021 21:34:26 +0300 Subject: [PATCH] pyinstaller: hooks: bring back hook-googleapiclient.model.py Got deleted by mistake in https://github.com/iterative/dvc/pull/5682/files --- scripts/pyinstaller/hooks/hook-googleapiclient.model.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/pyinstaller/hooks/hook-googleapiclient.model.py diff --git a/scripts/pyinstaller/hooks/hook-googleapiclient.model.py b/scripts/pyinstaller/hooks/hook-googleapiclient.model.py new file mode 100644 index 000000000..e73889752 --- /dev/null +++ b/scripts/pyinstaller/hooks/hook-googleapiclient.model.py @@ -0,0 +1,8 @@ +"""Temporary fix for https://github.com/iterative/dvc/issues/5618.""" +from PyInstaller.utils.hooks import ( # pylint:disable=import-error + collect_data_files, + copy_metadata, +) + +datas = collect_data_files("googleapiclient.discovery") +datas += copy_metadata("google_api_python_client")