Skip to content

Commit

Permalink
pyinstaller: build: check dvc doctor output (iterative#6425)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Aug 15, 2021
1 parent a7f01b6 commit 27b5419
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PyInstaller==4.3
PyInstaller==4.5.1
numpy==1.19.3
8 changes: 8 additions & 0 deletions scripts/pyinstaller/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@
cwd=path,
stderr=STDOUT,
)

check_call(
[
path / "dist" / "dvc" / "dvc",
"doctor",
],
stderr=STDOUT,
)
17 changes: 17 additions & 0 deletions scripts/pyinstaller/hooks/hook-dvc.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
copy_metadata,
)

# needed for `dvc doctor` to show dep versions
datas = copy_metadata("adlfs", recursive=True)
datas += copy_metadata("knack")
datas += copy_metadata("gcsfs")
datas += copy_metadata("pyarrow")
datas += copy_metadata("hdfs")
datas += copy_metadata("pydrive2")
datas += copy_metadata("s3fs", recursive=True)
datas += copy_metadata("boto3")
datas += copy_metadata("ossfs")
datas += copy_metadata("sshfs")
datas += copy_metadata("webdav4")

# https://github.com/pypa/setuptools/issues/1963
hiddenimports = ["pkg_resources.py2_warn"]

0 comments on commit 27b5419

Please sign in to comment.