Tiago Medicci 87f4eb8021 interpreters/python: add wrapper to initialize Python
This wrapper application checks if the Python's modules are already
mounted (and mounts them, if not), sets the necessary environment
variables and, then, runs the Python interpreter.
2025-02-01 23:34:24 +01:00

41 lines
978 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config INTERPRETER_CPYTHON
tristate "CPython"
depends on LIB_ZLIB
depends on EXPERIMENTAL
default n
---help---
Enable the CPython port to NuttX. This is a port of the Python
interpreter to NuttX. Initially, it is tweaked to work with the
RISC-V QEMU virtual board (`rv-virt`).
if INTERPRETER_CPYTHON
config INTERPRETER_CPYTHON_VERSION
string "Python Version"
default "3.13.0"
config INTERPRETER_CPYTHON_STACKSIZE
int "CPython stack size"
default 307200
---help---
This is the stack size allocated when the CPython task runs.
config INTERPRETER_CPYTHON_PRIORITY
int "CPython task priority"
default 100
---help---
This is the priority of the CPython task.
config INTERPRETER_CPYTHON_PROGNAME
string "CPython name"
default "python"
---help---
This is the name of the program that will be used from the nsh.
endif