Skip to content

Commit

Permalink
update numpy to 1.18.1 (#832)
Browse files Browse the repository at this point in the history
* install local builds without dependencies

* use existing deps
  • Loading branch information
sh1ng authored Mar 23, 2020
1 parent 5ffe21e commit 08d5aff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ RUN bash -c 'if [ `arch` = "ppc64le" ]; then \
#
# Install Python requirements
#
RUN pip install -U pip==19.3.1
RUN pip install -U pip==20.0.2

RUN pip install numpy==1.18.1 scipy==1.3.1 setuptools==45.0.0

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN if [ "$use_miniconda" = "1" ] ; then wget https://repo.continuum.io/minicond

ENV PATH=/opt/h2oai/h2o4gpu/python/bin:$PATH

RUN pip install -U pip==19.3.1
RUN pip install -U pip==20.0.2

#
# PPC64 specific - certain libs/whl don't support PPC64LE
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,21 +201,21 @@ build_py: update_submodule clean_py py # avoid cpp

install_xgboost_prev:
@echo "----- pip install xgboost previous version built locally -----"
cd xgboost_prev/python-package/dist && $(PYTHON) -m pip install xgboost-*-py3-none-any.whl --constraint ../../../src/interface_py/requirements_buildonly.txt --target ../
cd xgboost_prev/python-package/dist && $(PYTHON) -m pip install xgboost-*-py3-none-any.whl --no-deps --target ../

install_xgboost:
@echo "----- pip install xgboost built locally -----"
cd xgboost/python-package/dist && $(PYTHON) -m pip install xgboost-*-py3-none-any.whl --constraint ../../../src/interface_py/requirements_buildonly.txt --target ../
cd xgboost/python-package/dist && $(PYTHON) -m pip install xgboost-*-py3-none-any.whl --no-deps --target ../

install_lightgbm_gpu:
@echo "----- pip install lightgbm_gpu built locally -----"
bash -c 'if [ `arch` != "ppc64le" ]; then \
cd LightGBM/python-package/dist_gpu && $(PYTHON) -m pip install lightgbm*-py3-none-any.whl --constraint ../../../src/interface_py/requirements_buildonly.txt --target . ; \
cd LightGBM/python-package/dist_gpu && $(PYTHON) -m pip install lightgbm*-py3-none-any.whl --no-deps --target . ; \
fi'

install_lightgbm_cpu:
@echo "----- pip install lightgbm (for CPU) built locally -----"
cd LightGBM/python-package/dist_cpu && $(PYTHON) -m pip install lightgbm*-py3-none-any.whl --constraint ../../../src/interface_py/requirements_buildonly.txt --target .
cd LightGBM/python-package/dist_cpu && $(PYTHON) -m pip install lightgbm*-py3-none-any.whl --no-deps --target .

install_py:
$(MAKE) -j install -C src/interface_py
Expand Down
2 changes: 1 addition & 1 deletion scripts/apply_sklearn_pipinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ rm -rf sklearn
cd scikit-learn
file=`ls dist/h2o4gpu*.whl`

pip install $file --upgrade --constraint ../src/interface_py/requirements_buildonly.txt --target ../sklearn/
pip install $file --upgrade --constraint ../src/interface_py/requirements_buildonly.txt --target ../sklearn/ --upgrade-strategy only-if-needed
cd ../

0 comments on commit 08d5aff

Please sign in to comment.