File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ RUN git clone --depth 1 --recurse-submodules --shallow-submodules \
2323WORKDIR /usr/src/vim
2424# "backport" https://github.com/vim/vim/commit/16d7eced1a08565a9837db8067c7b9db5ed68854
2525RUN sed -i -e '/#\s *undef _POSIX_THREADS/d' src/if_python3.c
26+
27+ # "backport" https://github.com/vim/vim/commit/23c0192166760b0d73bd39252ca72e3cfe596f6e
28+ # This fixes Python3 detection for Python 3.10 and above
29+ RUN sed -i -e 's/import sys; print(sys\. version\[ :3\] )/import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))/' src/configure.ac src/auto/configure
30+
2631RUN ./configure --prefix=/opt/vim --enable-pythoninterp=yes --enable-python3interp=yes --enable-gui=gtk3
2732RUN make -j$(nproc)
2833RUN make install
You can’t perform that action at this time.
0 commit comments