You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Modify ./configure so that, even though this is Linux, it does not append .1.0 to the .so file.
128
128
RUN sed -i -e 's,INSTSONAME="$LDLIBRARY".$SOVERSION,,' python-src/configure
129
+
ARG PYTHON_SOVERSION
129
130
# Apply a C extensions linker hack; already fixed in Python 3.8+; see https://github.com/python/cpython/commit/254b309c801f82509597e3d7d4be56885ef94c11
130
-
RUN sed -i -e s,'libraries or \[\],\["pythonX.Ym"] + libraries if libraries else \["pythonX.Ym"\],' -e "s,pythonX.Ym,python${PYTHON_VERSION}m,g" python-src/Lib/distutils/extension.py
131
+
RUN sed -i -e s,'libraries or \[\],\["pythonPYTHON_SOVERSION"] + libraries if libraries else \["pythonPYTHON_SOVERSION"\],' -e "s,pythonPYTHON_SOVERSION,python${PYTHON_SOVERSION},g" python-src/Lib/distutils/extension.py
131
132
# Apply a hack to get the NDK library paths into the Python build. Python 3.6 (but not 3.7+) needs OpenSSL here as well.
132
133
# TODO(someday): Discuss with e.g. Kivy and see how to remove this.
133
134
RUN sed -i -e "s# dirs = \[\]# dirs = \[os.environ.get('SYSROOT_INCLUDE'), os.environ.get('SYSROOT_LIB'), os.environ.get('OPENSSL_INSTALL_DIR') + '/include', os.environ.get('OPENSSL_INSTALL_DIR') + '/lib' \]#" python-src/setup.py
@@ -138,7 +139,7 @@ RUN sed -i -e "s#Linux#DisabledLinuxCheck#" python-src/Lib/platform.py
138
139
139
140
# Apply our patches to Python. See patches/3.*/* for details.
140
141
ADD patches/${PYTHON_VERSION} python-src/patches
141
-
RUN cd python-src && quilt push -a
142
+
RUN cd python-src && if [ "$(wc -l < patches/series)" != "0" ] ; then quilt push -a; else echo "No patches." ; fi
142
143
143
144
# Build Python, pre-configuring some values so it doesn't check if those exist.
0 commit comments