From 3cbada4c82a52fbd9b87d3cb28679ab6cedf3557 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 19 Jun 2024 12:05:39 -0700 Subject: [PATCH] if numpy_version is not None: --- tools/ci_build/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index bfda236d32b59..aa0daf0594a5b 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -870,8 +870,8 @@ def update_submodules(source_dir): run_subprocess(["git", "submodule", "update", "--init", "--recursive"], cwd=source_dir) -def install_python_deps(requirements_file='requirements.txt',numpy_version=""): - if numpy_version: +def install_python_deps(requirements_file='requirements.txt',numpy_version=None): + if numpy_version is not None: # Remove current numpy version from requirements-pybind.txt and add the specified version with open(requirements_file, 'r+') as file: lines = file.readlines()