Skip to content

Commit

Permalink
feat: natively parallelize python installations
Browse files Browse the repository at this point in the history
  • Loading branch information
apaletta3 committed Jan 10, 2025
1 parent e9012f1 commit ec21466
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ RUN apt-get update -y \
tree \
make \
libssl-dev \
parallel \
&& rm -rf /var/lib/apt/lists/*

# Development Tools
Expand Down Expand Up @@ -88,19 +87,25 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
python3.12 python3.12-dev \
python3.13 python3.13-dev \
python3-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*

## Pip

RUN curl -sSo /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
parallel "python{} /tmp/get-pip.py" ::: 3.9 3.10 3.11 3.12 3.13 && \
rm /tmp/get-pip.py
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9 \
& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 \
& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 \
& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 \
& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.13 \
& wait

## Python tools

RUN parallel "python{} -m pip install --upgrade pip ipython" ::: 3.9 3.10 3.11 3.12 3.13
RUN parallel "python{} -m pip install --upgrade setuptools build wheel twine pytest pybind11-stubgen" ::: 3.9 3.10 3.11 3.12 3.13
RUN python3.9 -m pip install --upgrade pip ipython setuptools build wheel twine pytest pybind11-stubgen \
& python3.10 -m pip install --upgrade pip ipython setuptools build wheel twine pytest pybind11-stubgen \
& python3.11 -m pip install --upgrade pip ipython setuptools build wheel twine pytest pybind11-stubgen \
& python3.12 -m pip install --upgrade pip ipython setuptools build wheel twine pytest pybind11-stubgen \
& python3.13 -m pip install --upgrade pip ipython setuptools build wheel twine pytest pybind11-stubgen \
& wait

## CMake

Expand Down

0 comments on commit ec21466

Please sign in to comment.