diff --git a/scripts/hooks/hook-googleapiclient.model.py b/scripts/hooks/hook-googleapiclient.model.py new file mode 100644 index 000000000..e73889752 --- /dev/null +++ b/scripts/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")