Skip to content

Commit

Permalink
remove cmake,ninja installation from conda, use system installed
Browse files Browse the repository at this point in the history
  • Loading branch information
lsy323 committed Oct 6, 2023
1 parent 819b0e0 commit 8a7b8c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .circleci/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ RUN bash ./install_conda.sh "${python_version}" /opt/conda
RUN echo "conda activate base" >> ~/.bashrc
RUN echo "export TF_CPP_LOG_THREAD_ID=1" >> ~/.bashrc
ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/opt/conda/lib/:$LD_LIBRARY_PATH

RUN bash -c "source ~/.bashrc"

Expand Down
7 changes: 2 additions & 5 deletions .circleci/docker/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex

PYTHON_VERSION=$1
CONDA_PREFIX=$2
DEFAULT_PYTHON_VERSION=3.7
DEFAULT_PYTHON_VERSION=3.8


function install_and_setup_conda() {
Expand All @@ -30,7 +30,7 @@ function install_and_setup_conda() {
conda update -y -n base conda
conda install -y python=$PYTHON_VERSION

conda install -y nomkl numpy=1.18.5 pyyaml setuptools cmake \
conda install -y nomkl numpy=1.18.5 pyyaml setuptools \
cffi typing tqdm coverage hypothesis dataclasses cython

/usr/bin/yes | pip install mkl==2022.2.1
Expand All @@ -41,9 +41,6 @@ function install_and_setup_conda() {
/usr/bin/yes | pip install --upgrade numba
/usr/bin/yes | pip install cloud-tpu-client
/usr/bin/yes | pip install expecttest==0.1.3
/usr/bin/yes | pip install ninja # Install ninja to speedup the build
# Using Ninja requires CMake>=3.13, PyTorch requires CMake>=3.18
/usr/bin/yes | pip install "cmake>=3.18" --upgrade
/usr/bin/yes | pip install absl-py
# Additional PyTorch requirements
/usr/bin/yes | pip install scikit-image scipy==1.6.3
Expand Down

0 comments on commit 8a7b8c4

Please sign in to comment.