Skip to content

Commit

Permalink
aarch64: create and use a virtual environment for Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 committed May 16, 2024
1 parent e1931eb commit 707321e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docker/Dockerfile_aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ RUN apt-get update && apt-get -y --quiet --no-install-recommends install \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*

# Install Python 3 pip build dependencies first.
# Set Python 3 as the default version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN pip3 install wheel setuptools

# Create a virtual environment for Python packages
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

# Python 3 dependencies installed by pip
RUN pip3 install argparse argcomplete coverage cerberus empy==3.3.4 jinja2 kconfiglib \
matplotlib==3.0.* numpy packaging pkgconfig pyros-genmsg pyulog \
pyyaml requests serial six toml psutil pyulog wheel jsonschema
RUN pip3 install argparse argcomplete coverage cerberus empy==3.3.4 jinja2 \
kconfiglib matplotlib==3.0.* numpy packaging pkgconfig pyros-genmsg \
pyulog pyyaml requests setuptools serial six toml psutil pyulog wheel \
jsonschema

# astyle v3.1
RUN wget -q https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.1/astyle_3.1_linux.tar.gz -O /tmp/astyle.tar.gz \
Expand Down

0 comments on commit 707321e

Please sign in to comment.