Commit 963cabb7 authored by Fedor Batonogov's avatar Fedor Batonogov
Browse files

Updated Python

parent 2d4260ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ SHELL ["/bin/bash", "-i", "-c"]

LABEL maintainer="batonogov@icloud.com"

ARG PYTHON_VERSION=3.10.1
ARG PYTHON_VERSION=3.10.2
ARG PYINSTALLER_VERSION=4.9.0
ARG OPENSSL_VERSION=1.1.1m

+9 −9
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ LABEL maintainer="batonogov@icloud.com"
ENV DEBIAN_FRONTEND noninteractive

ARG WINE_VERSION=winehq-stable
ARG PYTHON_VERSION=3.10.1
ARG PYTHON_VERSION=3.10.2
ARG PYINSTALLER_VERSION=4.9.0

# we need wine for this all to work, so we'll use the PPA
@@ -39,17 +39,17 @@ RUN set -x \
    && winetricks win10 \
    && for msifile in `echo core dev exe lib path pip tcltk tools`; do \
        wget -nv "https://www.python.org/ftp/python/$PYTHON_VERSION/amd64/${msifile}.msi"; \
        wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/Python39; \
        wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/Python310; \
        rm ${msifile}.msi; \
    done \
    && cd /wine/drive_c/Python39 \
    && echo 'wine '\''C:\Python39\python.exe'\'' "$@"' > /usr/bin/python \
    && echo 'wine '\''C:\Python39\Scripts\easy_install.exe'\'' "$@"' > /usr/bin/easy_install \
    && echo 'wine '\''C:\Python39\Scripts\pip.exe'\'' "$@"' > /usr/bin/pip \
    && echo 'wine '\''C:\Python39\Scripts\pyinstaller.exe'\'' "$@"' > /usr/bin/pyinstaller \
    && echo 'wine '\''C:\Python39\Scripts\pyupdater.exe'\'' "$@"' > /usr/bin/pyupdater \
    && cd /wine/drive_c/Python310 \
    && echo 'wine '\''C:\Python310\python.exe'\'' "$@"' > /usr/bin/python \
    && echo 'wine '\''C:\Python310\Scripts\easy_install.exe'\'' "$@"' > /usr/bin/easy_install \
    && echo 'wine '\''C:\Python310\Scripts\pip.exe'\'' "$@"' > /usr/bin/pip \
    && echo 'wine '\''C:\Python310\Scripts\pyinstaller.exe'\'' "$@"' > /usr/bin/pyinstaller \
    && echo 'wine '\''C:\Python310\Scripts\pyupdater.exe'\'' "$@"' > /usr/bin/pyupdater \
    && echo 'assoc .py=PythonScript' | wine cmd \
    && echo 'ftype PythonScript=c:\Python39\python.exe "%1" %*' | wine cmd \
    && echo 'ftype PythonScript=c:\Python310\python.exe "%1" %*' | wine cmd \
    && while pgrep wineserver >/dev/null; do echo "Waiting for wineserver"; sleep 1; done \
    && chmod +x /usr/bin/python /usr/bin/easy_install /usr/bin/pip /usr/bin/pyinstaller /usr/bin/pyupdater \
    && (pip install -U pip || true) \
+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ Bumped Python version to 3.6 on Linux, thank you @itouch5000

#### [2.5] - upcoming
- Updated Ubuntu 20.04 -> 22.04
- Updated Python 3.10.1 -> 3.10.2
- Updated Pyinstaler 4.7.0 -> 4.9.0

## License