Skip to content

Commit

Permalink
[Dataset] Bump numpy >=1.20 dependency (ray-project#20374)
Browse files Browse the repository at this point in the history
* done?

* .

Co-authored-by: Alex Wu <[email protected]>
  • Loading branch information
Alex Wu and Alex Wu committed Nov 15, 2021
1 parent d191ad2 commit 884bb3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/base-deps/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
&& $HOME/anaconda3/bin/pip install --no-cache-dir \
flatbuffers \
cython==0.29.23 \
numpy==1.19.5 \
# Necessary for Dataset to work properly.
numpy>=1.20 \
psutil \
blist \
# blist is needed for numpy (which is re-installed when ray is installed)
Expand Down
4 changes: 4 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ def get_packages(self):
],
}

if sys.version_info >= (3, 7):
# Numpy dropped python 3.6 support in 1.20.
setup_spec.extras["data"].append("numpy >= 1.20")

# Ray Serve depends on the Ray dashboard components.
setup_spec.extras["serve"] = list(
set(setup_spec.extras["serve"] + setup_spec.extras["default"]))
Expand Down

0 comments on commit 884bb3d

Please sign in to comment.