[FEATURE] Python on NuttX: known issues, "TO-DO" list, and general enhancements
メンテナーはふだん 1 日以内に返信
@tmedicci がすでに取り組んでいます。
2024年12月9日 から。
評価
この issue はまだ評価されていません。
説明
Is your feature request related to a problem? Please describe.
After https://github.com/apache/nuttx-apps/pull/2879 was merged, it's time to make Python on NuttX fully usable!
This issue intends to discuss the next steps required to make it fully functional, including a "To-Do" list and any discussions on how it would evolve to support other architectures and platforms.
Initial Considerations
- Python for NuttX target initially the
rv-virt(RISC-V QEMU). That being said, itsinterpreters/python/config.siteandinterpreters/python/Setup.localare somehow tied with the features enabled by theboards/risc-v/qemu-rv/rv-virt/configs/cpython/defconfig. Python for NuttX depends onCONFIG_EXPERIMENTAL! - Python modules are stored in
pyc(byte-code format) and are loaded from a ROMFS image at startup. - Environment variables like
PYTHONHOMEandPYTHON_BASIC_REPLneeds to be set accordingly.
Describe the solution you'd like
TO-DO list:
This is the list of the next steps to make Python's port fully functional (sorted by highest priority):
- Provide a CMake-based build: currently we can only build it using
Make. - Generate
interpreters/python/Setup.localandinterpreters/python/config.sitedynamically according to the enabled configs. For instance:export ac_cv_func_pipe="yes"depends onCONFIG_PIPESbeing enabled. - Create a wrapper application to automate the 1) mounting the ROMFS image with the Python's modules, 2) setting the environment variables and 3) running the
Program/python.capp. - Support Python's socket module. This is one of the most important modules to enable Python applications with POSIX-compatible sockets .
Known Issues
- Check why enabling the optimization fails to generate coherent code for
Python/Modules/getpath.c. Reported at https://github.com/apache/incubator-nuttx-apps/blob/efc1bf710c8be1e0f0ae5e1bf2b292f8b57076a6/interpreters/python/Makefile#L86 (valid forriscv-none-elf-gcc (xPack GNU RISC-V Embedded GCC x86_64) 13.2.0)
Describe alternatives you've considered
No response
Verification
- I have verified before submitting the report.
- 主要言語
- C
- スター
- 475
- フォーク
- 811
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 181
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/nuttx-apps のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/nuttx-apps#4108 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE] Shrink getprime runs for OSTest対応中かも @linguini1 が 42 日前に担当しました。 オープンType: Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/nuttx-apps#3620 · コメント 6 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
apache/nuttx-apps#4107 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[TODO] move graphics/input -> input.再び着手できるかも @cederom が 241 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
apache/nuttx-apps#3436 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Type: Enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/nuttx-apps#3258 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
apache/nuttx-apps の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ESPresense/ESPresense#2680 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ImageMagick/ImageMagick#9134 ·
メンテナーはふだん 1 日以内に返信
-
Builder: a structure opened without calculation data shows the Diffraction (fibre) view by defaultオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
FriendsofECCE/ECCE#1245 · コメント 1 件 ·
-
Arch: ARM/AArch64 Doc
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
RT-Thread/rt-thread#12082 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
VirtualBox/virtualbox#996 ·
メンテナーはふだん 6 日以内に返信