This seems to cure the ncurses problem:
edit setup.py to read:
curses_includes.append('/usr/local/include/ncursesw')
I forgot to mention this was already done since the beginning.
But anyway I kinda redneck my way through compilation (after many many tries) of Python 3.11.1...
To successfully compile it I needed to ditch the CFLAGS/CXXFLAGS flags.
This is the step I did:
- Extract source files
- edit setup.py to change curses_includes.append path to /usr/local/include/ncursesw
- ./configure --prefix=/usr/local --enable-shared --enable-optimizations <--- slower but worth it
- make -j -l 4
- make altinstall DESTDIR=/tmp/python3.11
- mksquashfs /tmp/python3.11 python3.11.tcz
- cp /tmp/python3.11.tcz /mnt/mmcblkp2/tce/optional
If I added the CFLAGS/CXXFLAGS flags, make will always fail afterward ... I tried many flags settings ... spend two days watching compilation fails
tce-load -i python3.11
all good now ,,, thanks!