tce-load -i compiletc sqlite3-dev tk-dev glib2-dev gdbm-dev libEGL-dev readline-dev liblzma-dev openssl-dev wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz cd Python-3.11.1 edit setup.py curses_includes.append('/usr/local/include/ncursesw') CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -mtune=-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; find . -name Makefile -type f -exec sed -i 's/flto-partition=none -g/flto-partition=none/g' {} \; make [12m 38.39s] sudo make install