chore: clear typehinting errors in build scripts

This commit is contained in:
aclist committed 2026-11-12 12:01:59 +09:00
1 parent 77682cacd4
commit d2208787b4
5 files changed
+24 -20

No files matched your search

+3 -3
View File
@@ -52,7 +52,7 @@ def untar(file: str, glob: str, renamed: str) -> None:
os.rename(_dir, build_dir.joinpath(renamed))
def install_deps() -> None:
def install_deps() -> int:
pip = build_dir.joinpath(f"{CPYTHON_BUILD}/bin/pip")
proc = subprocess.run([pip, "install", root])
return proc.returncode
@@ -65,12 +65,12 @@ def repackage() -> None:
tar.add(build_dir.joinpath(CPYTHON_BUILD), arcname="python")
def rebuild_cpython() -> None:
def rebuild_cpython() -> str:
if cpython_dir.is_dir() is False:
get_cpython()
code = install_deps()
if code != 0:
return
return ""
repackage()
return get_packaged_version()