From 315c0936586f9402451f012bbfd5994ce07e61d1 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 1 Jun 2017 19:59:23 +0300 Subject: [PATCH] dvc: add hooks for pyinstall Pyinstall can't resolve all dependencies on it's own, so we need to help it with hoolks. From now on, we could try to use pyinstall on Windows and MacOS to see if will build standalone binaries. --- .gitignore | 2 ++ hooks/hook-google.cloud.py | 2 ++ hooks/hook-google.cloud.storage.py | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 hooks/hook-google.cloud.py create mode 100644 hooks/hook-google.cloud.storage.py diff --git a/.gitignore b/.gitignore index bb6167bad..4b5c0cb5b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ build/ dist/ *.egg-info/ + +hooks/*.pyc diff --git a/hooks/hook-google.cloud.py b/hooks/hook-google.cloud.py new file mode 100644 index 000000000..fc0b4659f --- /dev/null +++ b/hooks/hook-google.cloud.py @@ -0,0 +1,2 @@ +from PyInstaller.utils.hooks import copy_metadata +datas = copy_metadata('google-cloud-core') diff --git a/hooks/hook-google.cloud.storage.py b/hooks/hook-google.cloud.storage.py new file mode 100644 index 000000000..0a943167f --- /dev/null +++ b/hooks/hook-google.cloud.storage.py @@ -0,0 +1,2 @@ +from PyInstaller.utils.hooks import copy_metadata +datas = copy_metadata('google-cloud-storage')