Skip to content

Commit

Permalink
Make python3 default by installing python-is-python3
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed Dec 6, 2023
1 parent eb94aae commit 0e9b267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Docker/github_ci_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
openmpi-bin \
openmpi-common \
openmpi-doc \
python-is-python3 \
python3-dev \
python3-mako \
python3-numpy \
Expand All @@ -44,9 +45,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-get autoclean -y && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/*

# make python3 default
RUN `ln -s /usr/bin/python3 /usr/bin/python`

RUN pip3 install --no-cache-dir \
cython \
decorator \
Expand Down
1 change: 1 addition & 0 deletions Docker/mpich_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN apt-get update && \
libc++-${LLVM}-dev \
libc++abi-${LLVM}-dev \
libboost-dev \
python-is-python3 \
python3-pip \
python3-setuptools \
python3-dev \
Expand Down
4 changes: 1 addition & 3 deletions Docker/openmpi_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
libfabric-dev \
libomp-${LLVM}-dev \
nodejs \
python-is-python3 \
python3-dev \
python3-mako \
python3-numpy \
Expand All @@ -55,9 +56,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
apt-get autoclean -y && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/*

# make python3 default
RUN `ln -s /usr/bin/python3 /usr/bin/python`

# install openmpi and compile openmpi manually
# this is to ensure PMI compatibility with cray systems
# RUN wget -q https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.5.tar.gz \
Expand Down

0 comments on commit 0e9b267

Please sign in to comment.