mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 15:28:27 +01:00
* build: separate pyinstaller and fpm/innosetup * gha: upload deb/rpm/osxpkg/exe artifacts * build: dynamically generate dvc version
23 lines
417 B
Python
23 lines
417 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,
|
|
)
|