Commit d085ead9 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added temporary build for Python 2

parent 57520aaf
......@@ -11,3 +11,18 @@ all:
$(MAKE) -C Python-2.7.16 install
chmod -v 755 /usr/lib/libpython2.7.so.1.0
rm -rf Python-2.7.16
temporary:
tar xf Python-2.7.16.tar.xz
patch -Np1 -d Python-2.7.16 < Python-2.7.16-OpenSSL_1.1.1_test_fix.patch
cd Python-2.7.16 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist
cd Python-2.7.16 && ./configure --prefix=/build/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-unicode=ucs4
$(MAKE) -C Python-2.7.16 install
echo "/build/usr/lib" >> /etc/ld.so.conf
ldconfig
rm -rf Python-2.7.16
clean:
rm -rf /build/usr
sed '/^\/build\/usr\/lib/d' -i /etc/ld.so.conf
ldconfig
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment