Skip to content

Commit

Permalink
archlinux: 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 cfa927f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docker/Dockerfile_base-archlinux
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@ RUN pacman -Sy --noconfirm \
wget \
zip

# 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 \
# Create a virtual environment for Python packages
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

# Install wheel and setuptools in the virtual environment
RUN pip3 install wheel setuptools

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

# Install genromfs
Expand Down

0 comments on commit cfa927f

Please sign in to comment.