Skip to content

Commit

Permalink
Merge pull request cupy#7574 from kmaehashi/fix-for-pip-23.1
Browse files Browse the repository at this point in the history
Fix CUDA Python CI failure
  • Loading branch information
emcastillo authored and chainer-ci committed May 22, 2023
1 parent 0fba129 commit af87efb
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .pfnci/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 173,7 @@ def generate_dockerfile(self) -> str:
'ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"',
f'RUN pyenv install {py_spec} && \\',
f' pyenv global {py_spec} && \\',
' pip install -U setuptools pip',
' pip install -U setuptools pip wheel',
'',
]

Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/benchmark.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.24.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/benchmark.head.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.24.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda-example.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.7.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda-head.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy>=0a0' 'scipy>=0a0' 'optuna>=0a0' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda-slow.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda102.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 29,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.6.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda102.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 29,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.6.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda110.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.9.6 && \
pyenv global 3.9.6 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.7.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda110.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.9.6 && \
pyenv global 3.9.6 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.7.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda111.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 25,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'cython==0.29.*'
RUN pip uninstall -y scipy optuna mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda111.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 25,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'cython==0.29.*'
RUN pip uninstall -y scipy optuna mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda112.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 25,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.21.*' 'scipy==1.7.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda112.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 25,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.21.*' 'scipy==1.7.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda113.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.6.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda113.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.6.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda114.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.10.0 && \
pyenv global 3.10.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.22.*' 'scipy==1.7.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda114.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.10.0 && \
pyenv global 3.10.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.22.*' 'scipy==1.7.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda115.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.10.0 && \
pyenv global 3.10.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.8.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda115.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.10.0 && \
pyenv global 3.10.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.8.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda116.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda116.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda117.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda117.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda118.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.24.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda118.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.24.*' 'scipy==1.9.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda11x-cuda-python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.10.0 && \
pyenv global 3.10.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.21.*' 'scipy==1.7.*' 'optuna==3.*' 'cython==0.29.*' 'cuda-python==11.*'
RUN pip uninstall -y mpi4py && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda120.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda120.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda121.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/cuda121.multi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*'
RUN pip uninstall -y cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/rocm-4-3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 32,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.8.11 && \
pyenv global 3.8.11 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.20.*' 'scipy==1.6.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/rocm-5-0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 32,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.10.0 && \
pyenv global 3.10.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.23.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down
2 changes: 1 addition & 1 deletion .pfnci/linux/tests/rocm-5-3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 32,7 @@ ENV PYENV_ROOT "/opt/pyenv"
ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN pyenv install 3.11.0 && \
pyenv global 3.11.0 && \
pip install -U setuptools pip
pip install -U setuptools pip wheel

RUN pip install -U 'numpy==1.24.*' 'scipy==1.9.*' 'optuna==3.*' 'cython==0.29.*'
RUN pip uninstall -y mpi4py cuda-python && \
Expand Down

0 comments on commit af87efb

Please sign in to comment.