nuttx-apps/interpreters/python/Kconfig
Tiago Medicci 8ba84edb0a interpreters/python: Enable using pip to install Python packages
This commit enables using `pip` as a pre-compiled (pyc) built-in
distributed along with cpython.

Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
2026-05-18 15:08:30 -04:00

57 lines
1.5 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config INTERPRETERS_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 INTERPRETERS_CPYTHON
config INTERPRETERS_CPYTHON_VERSION
string "Python Version"
default "3.13.0"
config INTERPRETERS_CPYTHON_STACKSIZE
int "CPython stack size"
default 307200
---help---
This is the stack size allocated when the CPython task runs.
config INTERPRETERS_CPYTHON_PRIORITY
int "CPython task priority"
default 100
---help---
This is the priority of the CPython task.
config INTERPRETERS_CPYTHON_PROGNAME
string "CPython name"
default "python"
---help---
This is the name of the program that will be used from the nsh.
config INTERPRETERS_CPYTHON_ENABLE_PIP
bool "Enable bundled pip"
default n
---help---
Enable bundling pip into the CPython module image. When enabled, the
build downloads the pip wheel and pre-installs it through a
site-packages .pth entry that points to ensurepip's bundled wheel.
Disable this to skip pip wheel download/integration entirely.
config INTERPRETERS_CPYTHON_PYTHONPATH
string "CPython Python path"
default "/tmp"
---help---
This is the Python default search path for modules files. This is
required to be a writable path.
endif