Tiny Core Base > Raspberry Pi
Lost while trying to compile Python 3.11.1
elcouz:
Hello,
I've been using for months TCL, it is really nice. I am trying to upgrade the Python version from 3.10 to 3.11.1 (current with speed improvements)
I am following a guide for an older version but I am kinda lost. (http://tinycorelinux.net/11.x/x86_64/tcz/src/python3.6/compile_python3.6)
I always get curses missing while compiling even thought it is installed.
Not sure what to do with CPPFLAGS line and I am not sure it applies to PiCore ARMV7 instructions.
Any help appreciated!
Thanks!!!
Juanito:
The CPPFLAGS are correct and work with python3.6 and python3.9, so I'm not sure why the build failed for the curses module. Are both ncurses and ncurses-dev loaded?
For piCore you should replace "-mtune=generic" by "-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
patrikg:
Hello
Sorry for hijacking this thread, but something comes into mind.
What i have learned that there two versions of ncurses and ncursesw.
And then i used picore before i have to compile and get the older version of ncurses without "w".
I think the "w" stands for support for unicode wide charset.
Uses more than one byte to represent the glyph.
Juanito:
ncurses is non-unicode only
ncursesw is both non-unicode and unicode
In prior versions of x86 tinycore both extensions existed, which tended to cause confusion and many users needed to load both.
As said, prior versions of python built against ncursesw without problems.
As it says "following modules built successfully, but could not be imported..", I wonder if the problem is not elsewhere - perhaps readline is not built against ncursesw or perhaps setuptools or pip is required?
elcouz:
--- Quote from: elcouz on January 21, 2023, 07:46:26 AM ---
--- Quote from: Juanito on January 21, 2023, 12:24:26 AM ---The CPPFLAGS are correct and work with python3.6 and python3.9, so I'm not sure why the build failed for the curses module. Are both ncurses and ncurses-dev loaded?
For piCore you should replace "-mtune=generic" by "-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
--- End quote ---
--- End quote ---
I know it will sound like a newbie but where do you put this flag? On the ./configure line?
Should -march be armv7 (I am on that) instead armv6zk?
--- Quote ---Are both ncurses and ncurses-dev loaded?
--- End quote ---
Python build does work without ncurses not sure what will be the limitation without that.
Thanks for the replies everyone!
Navigation
[0] Message Index
[#] Next page
Go to full version