@@ -55,12 +55,6 @@ COPY 3.6/s2i/bin/ $STI_SCRIPTS_PATH
5555# Copy extra files to the image.
5656COPY 3.6/root/ /
5757
58- # Python 3 only
59- # Yes, the directory below is already copied by the previous command.
60- # The problem here is that the wheels directory is copied as a symlink.
61- # Only if you specify symlink directly as a source, COPY copies all the
62- # files from the symlink destination.
63- COPY 3.6/root/opt/wheels /opt/wheels
6458# - Create a Python virtual environment for use by any application to avoid
6559# potential conflicts with Python packages preinstalled in the main Python
6660# installation.
@@ -69,16 +63,6 @@ COPY 3.6/root/opt/wheels /opt/wheels
6963# under random UID.
7064RUN \
7165 virtualenv-$PYTHON_VERSION ${APP_ROOT} && \
72- # Python 3 only code, Python 2 installs pip from PyPI in the assemble script. \
73- # We have to upgrade pip to a newer verison because: \
74- # * pip < 9 does not support different packages' versions for Python 2/3 \
75- # * pip < 19.3 does not support manylinux2014 wheels. Only manylinux2014 (and later) wheels \
76- # support platforms like ppc64le, aarch64 or armv7 \
77- # We are newly using wheel from one of the latest stable Fedora releases (from RPM python-pip-wheel) \
78- # because it's tested better then whatever version from PyPI and contains useful patches. \
79- # We have to do it here (in the macro) so the permissions are correctly fixed and pip is able \
80- # to reinstall itself in the next build phases in the assemble script if user wants the latest version \
81- ${APP_ROOT}/bin/pip install /opt/wheels/pip-* && \
8266 rm -r /opt/wheels && \
8367 chown -R 1001:0 ${APP_ROOT} && \
8468 fix-permissions ${APP_ROOT} -P && \
0 commit comments