mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
fix: abort if deps could not be installed in cpython distribution
This commit is contained in:
parent
9af2145ee8
commit
3dc58c1a69
@ -53,7 +53,8 @@ def untar(file: str, glob: str, renamed: str) -> None:
|
||||
|
||||
def install_deps() -> None:
|
||||
pip = build_dir.joinpath(f"{CPYTHON_BUILD}/bin/pip")
|
||||
subprocess.run([pip, "install", root])
|
||||
proc = subprocess.run([pip, "install", root])
|
||||
return proc.returncode
|
||||
|
||||
|
||||
def repackage() -> None:
|
||||
@ -66,7 +67,9 @@ def repackage() -> None:
|
||||
def rebuild_cpython() -> None:
|
||||
if cpython_dir.is_dir() is False:
|
||||
get_cpython()
|
||||
install_deps()
|
||||
code = install_deps()
|
||||
if code != 0:
|
||||
return
|
||||
repackage()
|
||||
return get_packaged_version()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user