tce-load -i libffi-dev expat2-dev tk-dev bzip2-dev sqlite3-dev openssl-1.0.0-dev Xorg-7.6-dev cd Python-2.7.3 patch -Np1 -i ../openssl-static-patch sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti" CC="gcc -flto -fuse-linker-plugin" CXX="g++ -flto -fuse-linker-plugin" ./configure --prefix=/usr/local --enable-shared --with-system-ffi --enable-unicode edit -O3 from Makefile make make install sudo rm usr/local/lib/python2.7/*.pyc sudo rm usr/local/lib/python2.7/*.pyo sudo rm usr/local/lib/python2.7/bsddb/*.pyo sudo rm usr/local/lib/python2.7/bsddb/*.pyc sudo rm usr/local/lib/python2.7/bsddb/test/*.pyc sudo rm usr/local/lib/python2.7/bsddb/test/*.pyo sudo rm usr/local/lib/python2.7/compiler/*.pyo sudo rm usr/local/lib/python2.7/compiler/*.pyc sudo rm usr/local/lib/python2.7/ctypes/*.pyc sudo rm usr/local/lib/python2.7/ctypes/*.pyo sudo rm usr/local/lib/python2.7/ctypes/macholib/*.pyo sudo rm usr/local/lib/python2.7/ctypes/macholib/*.pyc sudo rm usr/local/lib/python2.7/ctypes/test/*.pyc sudo rm usr/local/lib/python2.7/ctypes/test/*.pyo sudo rm usr/local/lib/python2.7/curses/*.pyo sudo rm usr/local/lib/python2.7/curses/*.pyc sudo rm usr/local/lib/python2.7/distutils/*.pyc sudo rm usr/local/lib/python2.7/distutils/*.pyo sudo rm usr/local/lib/python2.7/distutils/command/*.pyo sudo rm usr/local/lib/python2.7/distutils/command/*.pyc sudo rm usr/local/lib/python2.7/distutils/tests/*.pyc sudo rm usr/local/lib/python2.7/distutils/tests/*.pyo sudo rm usr/local/lib/python2.7/email/*.pyo sudo rm usr/local/lib/python2.7/email/*.pyc sudo rm usr/local/lib/python2.7/email/mime/*.pyc sudo rm usr/local/lib/python2.7/email/mime/*.pyo sudo rm usr/local/lib/python2.7/email/test/*.pyo sudo rm usr/local/lib/python2.7/email/test/*.pyc sudo rm usr/local/lib/python2.7/encodings/*.pyc sudo rm usr/local/lib/python2.7/encodings/*.pyo sudo rm usr/local/lib/python2.7/hotshot/*.pyo sudo rm usr/local/lib/python2.7/hotshot/*.pyc sudo rm usr/local/lib/python2.7/idlelib/*.pyc sudo rm usr/local/lib/python2.7/idlelib/*.pyo sudo rm usr/local/lib/python2.7/importlib/*.pyo sudo rm usr/local/lib/python2.7/importlib/*.pyc sudo rm usr/local/lib/python2.7/json/tests/*.pyo sudo rm usr/local/lib/python2.7/json/tests/*.pyc sudo rm usr/local/lib/python2.7/lib-tk/*.pyc sudo rm usr/local/lib/python2.7/lib-tk/*.pyo sudo rm usr/local/lib/python2.7/lib-tk/test/*.pyo sudo rm usr/local/lib/python2.7/lib-tk/test/*.pyc sudo rm usr/local/lib/python2.7/lib-tk/test/test_tkinter/*.pyc sudo rm usr/local/lib/python2.7/lib-tk/test/test_tkinter/*.pyo sudo rm usr/local/lib/python2.7/lib-tk/test/test_ttk/*.pyo sudo rm usr/local/lib/python2.7/lib-tk/test/test_ttk/*.pyc sudo rm usr/local/lib/python2.7/lib2to3/*.pyc sudo rm usr/local/lib/python2.7/lib2to3/*.pyo sudo rm usr/local/lib/python2.7/lib2to3/fixes/*.pyo sudo rm usr/local/lib/python2.7/lib2to3/fixes/*.pyc sudo rm usr/local/lib/python2.7/lib2to3/pgen2/*.pyc sudo rm usr/local/lib/python2.7/lib2to3/pgen2/*.pyo sudo rm usr/local/lib/python2.7/lib2to3/tests/*.pyo sudo rm usr/local/lib/python2.7/lib2to3/tests/*.pyc sudo rm usr/local/lib/python2.7/logging/*.pyo sudo rm usr/local/lib/python2.7/logging/*.pyc sudo rm usr/local/lib/python2.7/multiprocessing/*.pyc sudo rm usr/local/lib/python2.7/multiprocessing/*.pyo sudo rm usr/local/lib/python2.7/multiprocessing/dummy/*.pyo sudo rm usr/local/lib/python2.7/multiprocessing/dummy/*.pyc sudo rm usr/local/lib/python2.7/plat-linux2/*.pyc sudo rm usr/local/lib/python2.7/plat-linux2/*.pyo sudo rm usr/local/lib/python2.7/pydoc_data/*.pyo sudo rm usr/local/lib/python2.7/pydoc_data/*.pyc sudo rm usr/local/lib/python2.7/sqlite3/*.pyc sudo rm usr/local/lib/python2.7/sqlite3/*.pyo sudo rm usr/local/lib/python2.7/sqlite3/test/*.pyo sudo rm usr/local/lib/python2.7/sqlite3/test/*.pyc sudo rm usr/local/lib/python2.7/test/*.pyc sudo rm usr/local/lib/python2.7/test/*.pyo sudo rm usr/local/lib/python2.7/test/subprocessdata/*.pyo sudo rm usr/local/lib/python2.7/test/subprocessdata/*.pyc sudo rm usr/local/lib/python2.7/test/tracedmodules/*.pyc sudo rm usr/local/lib/python2.7/test/tracedmodules/*.pyo sudo rm usr/local/lib/python2.7/unittest/*.pyo sudo rm usr/local/lib/python2.7/unittest/*.pyc sudo rm usr/local/lib/python2.7/unittest/test/*.pyc sudo rm usr/local/lib/python2.7/unittest/test/*.pyo sudo rm usr/local/lib/python2.7/unittest/wsgiref/*.pyo sudo rm usr/local/lib/python2.7/unittest/wsgiref/*.pyc sudo rm usr/local/lib/python2.7/xml/*.pyc sudo rm usr/local/lib/python2.7/xml/*.pyo sudo rm usr/local/lib/python2.7/xml/dom/*.pyo sudo rm usr/local/lib/python2.7/xml/dom/*.pyc sudo rm usr/local/lib/python2.7/xml/etree/*.pyc sudo rm usr/local/lib/python2.7/xml/etree/*.pyo sudo rm usr/local/lib/python2.7/xml/parsers/*.pyo sudo rm usr/local/lib/python2.7/xml/parsers/*.pyc sudo rm usr/local/lib/python2.7/xml/sax/*.pyc sudo rm usr/local/lib/python2.7/xml/sax/*.pyo sudo rm usr/local/lib/python2.7/*.py sudo rm usr/local/lib/python2.7/bsddb/*.py sudo rm usr/local/lib/python2.7/bsddb/test/*.py sudo rm usr/local/lib/python2.7/compiler/*.py sudo rm usr/local/lib/python2.7/ctypes/*.py sudo rm usr/local/lib/python2.7/ctypes/macholib/*.py sudo rm usr/local/lib/python2.7/ctypes/test/*.py sudo rm usr/local/lib/python2.7/curses/*.py sudo rm usr/local/lib/python2.7/distutils/*.py sudo rm usr/local/lib/python2.7/distutils/command/*.py sudo rm usr/local/lib/python2.7/distutils/tests/*.py sudo rm usr/local/lib/python2.7/email/*.py sudo rm usr/local/lib/python2.7/email/mime/*.py sudo rm usr/local/lib/python2.7/email/test/*.py sudo rm usr/local/lib/python2.7/encodings/*.py sudo rm usr/local/lib/python2.7/hotshot/*.py sudo rm usr/local/lib/python2.7/idlelib/*.py sudo rm usr/local/lib/python2.7/importlib/*.py sudo rm usr/local/lib/python2.7/json/*.py sudo rm usr/local/lib/python2.7/json/tests/*.py sudo rm usr/local/lib/python2.7/lib-tk/*.py sudo rm usr/local/lib/python2.7/lib-tk/test/*.py sudo rm usr/local/lib/python2.7/lib-tk/test/test_tkinter/*.py sudo rm usr/local/lib/python2.7/lib-tk/test/test_ttk/*.py sudo rm usr/local/lib/python2.7/lib2to3/*.py sudo rm usr/local/lib/python2.7/lib2to3/fixes/*.py sudo rm usr/local/lib/python2.7/lib2to3/pgen2/*.py sudo rm usr/local/lib/python2.7/lib2to3/tests/*.py sudo rm usr/local/lib/python2.7/logging/*.py sudo rm usr/local/lib/python2.7/multiprocessing/*.py sudo rm usr/local/lib/python2.7/multiprocessing/dummy/*.py sudo rm usr/local/lib/python2.7/plat-linux2/*.py sudo rm usr/local/lib/python2.7/pydoc_data/*.py sudo rm usr/local/lib/python2.7/sqlite3/*.py sudo rm usr/local/lib/python2.7/sqlite3/test/*.py sudo rm usr/local/lib/python2.7/test/*.py sudo rm usr/local/lib/python2.7/test/subprocessdata/*.py sudo rm usr/local/lib/python2.7/test/tracedmodules/*.py sudo rm usr/local/lib/python2.7/unittest/*.py sudo rm usr/local/lib/python2.7/unittest/test/*.py sudo rm usr/local/lib/python2.7/unittest/wsgiref/*.py sudo rm usr/local/lib/python2.7/xml/*.py sudo rm usr/local/lib/python2.7/xml/dom/*.py sudo rm usr/local/lib/python2.7/xml/etree/*.py sudo rm usr/local/lib/python2.7/xml/parsers/*.py sudo rm usr/local/lib/python2.7/xml/sax/*.py