mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 19:27:13 +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:
|
def install_deps() -> None:
|
||||||
pip = build_dir.joinpath(f"{CPYTHON_BUILD}/bin/pip")
|
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:
|
def repackage() -> None:
|
||||||
@ -66,7 +67,9 @@ def repackage() -> None:
|
|||||||
def rebuild_cpython() -> None:
|
def rebuild_cpython() -> None:
|
||||||
if cpython_dir.is_dir() is False:
|
if cpython_dir.is_dir() is False:
|
||||||
get_cpython()
|
get_cpython()
|
||||||
install_deps()
|
code = install_deps()
|
||||||
|
if code != 0:
|
||||||
|
return
|
||||||
repackage()
|
repackage()
|
||||||
return get_packaged_version()
|
return get_packaged_version()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user