fix: use default numpy version (1.26.4) when git clone fails (version=0.0.0)
Some checks failed
EcoArk Wheel Pipeline CI / build (push) Failing after 3m34s
Some checks failed
EcoArk Wheel Pipeline CI / build (push) Failing after 3m34s
This commit is contained in:
@ -360,10 +360,10 @@ def rebuild_from_source(source_dir, pkg_name, output_dir, version="0.0.0",
|
|||||||
Falls back to stub wheel generation for unknown packages.
|
Falls back to stub wheel generation for unknown packages.
|
||||||
"""
|
"""
|
||||||
if pkg_name == "numpy":
|
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)
|
# Use default numpy version if no real version detected (e.g. git clone failed)
|
||||||
if version == "0.0.0":
|
if version == "0.0.0":
|
||||||
version = "1.26.4"
|
version = "1.26.4"
|
||||||
|
return build_numpy_wheel(version=version, output_dir=output_dir)
|
||||||
return _stub_wheel(source_dir, pkg_name, output_dir, version, target_os, arch)
|
return _stub_wheel(source_dir, pkg_name, output_dir, version, target_os, arch)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user