mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 15:28:27 +01:00
31 lines
521 B
Python
31 lines
521 B
Python
import os
|
|
import pathlib
|
|
from subprocess import STDOUT, check_call
|
|
|
|
path = pathlib.Path(__file__).parent.absolute()
|
|
hooks = path / "hooks"
|
|
dvc = path.parent.parent / "dvc"
|
|
entry = dvc / "__main__.py"
|
|
|
|
check_call(
|
|
[
|
|
"pyinstaller",
|
|
"--additional-hooks-dir",
|
|
os.fspath(hooks),
|
|
"--name",
|
|
"dvc",
|
|
"-y",
|
|
os.fspath(entry),
|
|
],
|
|
cwd=path,
|
|
stderr=STDOUT,
|
|
)
|
|
|
|
check_call(
|
|
[
|
|
path / "dist" / "dvc" / "dvc",
|
|
"doctor",
|
|
],
|
|
stderr=STDOUT,
|
|
)
|