Skip to content

Commit

Permalink
if numpy_version is not None:
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jun 19, 2024
1 parent 18fe063 commit 3cbada4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3cbada4

Please sign in to comment.