Skip to content

Commit

Permalink
chore:update python to 3.11.x (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor authored Nov 28, 2023
1 parent 373030e commit 0aebf8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ docker run -ti --rm \
|--------.NET---------|-------------------------------------|
| `dotnet` |`dotnet-sdk-6.0` |
|------PYTHON---------|-------------------------------------|
| `python` |`python39` |
| `setuptools` |`python39-setuptools` |
| `pip` |`python39-pip` |
| `python` |`python3.11` |
| `setuptools` |`python3.11-setuptools` |
| `pip` |`python3.11-pip` |
| `pylint` |`<via pip>` |
| `yq` |`<via pip>` |
|--------RUST---------|-------------------------------------|
Expand Down
12 changes: 5 additions & 7 deletions universal/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,13 @@ ENV GOBIN="/home/tooling/go/bin/"
ENV PATH="$GOBIN:$PATH"

# Python
RUN dnf -y module enable python39:3.9 && \
dnf -y update && \
dnf -y install python39 python39-devel python39-setuptools python39-pip nss_wrapper
RUN dnf -y install python3.11 python3.11-devel python3.11-setuptools python3.11-pip nss_wrapper

RUN cd /usr/bin \
&& if [ ! -L python ]; then ln -s python3.9 python; fi \
&& if [ ! -L pydoc ]; then ln -s pydoc3.9 pydoc; fi \
&& if [ ! -L python-config ]; then ln -s python3.9-config python-config; fi \
&& if [ ! -L pip ]; then ln -s pip-3.9 pip; fi
&& if [ ! -L python ]; then ln -s python3.11 python; fi \
&& if [ ! -L pydoc ]; then ln -s pydoc3.11 pydoc; fi \
&& if [ ! -L python-config ]; then ln -s python3.11-config python-config; fi \
&& if [ ! -L pip ]; then ln -s pip-3.11 pip; fi

RUN pip install pylint yq

Expand Down

0 comments on commit 0aebf8e

Please sign in to comment.