fix: use default numpy version (1.26.4) when git clone fails (version=0.0.0)
Some checks are pending
EcoArk Wheel Pipeline CI / build (push) Has started running

This commit is contained in:
2026-05-13 17:22:45 +08:00
parent 553b83953c
commit dcdb0fa008

View File

@ -361,6 +361,9 @@ def rebuild_from_source(source_dir, pkg_name, output_dir, version="0.0.0",
"""
if pkg_name == "numpy":
return build_numpy_wheel(version=version, output_dir=output_dir)
# Use default numpy version if no real version detected (e.g. git clone failed)
if version == "0.0.0":
version = "1.26.4"
return _stub_wheel(source_dir, pkg_name, output_dir, version, target_os, arch)