Skip to content

Commit

Permalink
chore: removed distutils package from dockerfiles (#72)
Browse files Browse the repository at this point in the history
* chore: removed distutils from dockerfiles having python3.12
chore: removed test code

* fix: remove extra line

---------

Co-authored-by: Usama Sadiq <[email protected]>
  • Loading branch information
huniafatima-arbi and UsamaSadiq committed Dec 10, 2024
1 parent f6960a1 commit 1d989ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions dockerfiles/course-discovery.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ RUN apt-get update && \
libcairo2-dev \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils && \
python${PYTHON_VERSION}-dev && \
rm -rf /var/lib/apt/lists/*

# Use UTF-8.
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/edx-exams.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/enterprise-access.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
libsqlite3-dev \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/portal-designer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN pip install --upgrade pip setuptools
# delete apt package lists because we do not need them inflating our image
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/program-intent-engagement.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev


# need to use virtualenv pypi package with Python 3.12
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/registrar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ RUN apt-get install -qy \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

# need to use virtualenv pypi package with Python 3.12
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}
Expand Down

0 comments on commit 1d989ad

Please sign in to comment.