Skip to content

Commit

Permalink
Fix Pip install error on Ubuntu 23.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehue committed Nov 9, 2023
1 parent d84e00d commit 971e538
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions linux-x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update -qq && apt-get install -y -qq \
lcov \
make \
ninja-build \
pipx \
python3-pip \
sudo \
vim \
Expand All @@ -34,7 +35,7 @@ RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
RUN wget https://github.com/Kitware/CMake/releases/download/v3.22.0/cmake-3.22.0-linux-x86_64.tar.gz -q
RUN sudo tar xz -f /cmake-3.22.0-linux-x86_64.tar.gz -C /opt
# Setting PATH for both normal and sudo users
ENV PATH="/opt/cmake-3.22.0-linux-x86_64/bin:$PATH"
ENV PATH="/.local/bin:/opt/cmake-3.22.0-linux-x86_64/bin:$PATH"
RUN echo "Defaults secure_path=\"/opt/cmake-3.22.0-linux-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"" >> /etc/sudoers
RUN cmake --version
RUN sudo cmake --version
Expand All @@ -57,8 +58,8 @@ RUN GCC_VERSION=$(g++ -dumpfullversion) \
fi

# Install cmake-format and codespell
RUN pip3 install cmake-format
RUN pip3 install codespell
RUN pipx install cmakelang # contains cmake-format
RUN pipx install codespell

# Enable tab completion for git
RUN echo 'source /usr/share/bash-completion/completions/git' >> /.bashrc
Expand Down

0 comments on commit 971e538

Please sign in to comment.