Merge pull request #2 from ken4647/main add tty feature to fix issue of python terminal
Merge pull request #2 from ken4647/main
add tty feature to fix issue of python terminal
tty
These are the congifure and build files help to run Python on RuxOS using CPython interpreter.
The Python execute file and lib files are placed in ‘rootfs/‘. The ‘rootfs/‘ is a minimal rootfs for RuxOS in this application using 9pfs.
Copy this directory to ‘ruxos/apps/c’ and change its name to ‘python3’
Python3 depends on the dynamic loading, config the python args and envs in axbuild.mk
chmod +x build.sh ./build.sh
Copy the musl libc dynamic loader to ‘./rootfs/lib/‘
Run
change directory to ‘ruxos/‘ directory
run the python terminal
make A=apps/c/python3 ARCH=aarch64 V9P=y NET=y MUSL=y LOG=off SMP=4 run
run the python file:
copy python source file into rootfs and config axbuild.mk to:
app-objs=main.o ARGS=/bin/python3.11,<souce_path> ENVS=PYTHONLIB=/lib,PYTHONHOME=/ V9P_PATH=${APP}/rootfs
What’s this
These are the congifure and build files help to run Python on RuxOS using CPython interpreter.
The Python execute file and lib files are placed in ‘rootfs/‘. The ‘rootfs/‘ is a minimal rootfs for RuxOS in this application using 9pfs.
How to build
Copy this directory to ‘ruxos/apps/c’ and change its name to ‘python3’
Dynamic Loading
Python3 depends on the dynamic loading, config the python args and envs in axbuild.mk
Quick Start
Copy the musl libc dynamic loader to ‘./rootfs/lib/‘
Run
change directory to ‘ruxos/‘ directory
run the python terminal
run the python file:
copy python source file into rootfs and config axbuild.mk to: