-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interpreters/python: fix patch to set _PyRuntime
attribute
#2992
interpreters/python: fix patch to set _PyRuntime
attribute
#2992
Conversation
This commit also adds the check for the `__NuttX__` macro to the patch file that allows setting an attribute to the `_PyRuntime` structure. The `__NuttX__` macro is guaranteed to be present when building any application for NuttX.
[Experimental Bot, please feedback here] Yes, this PR mostly meets the NuttX requirements, but could be improved. Here's a breakdown: Strengths:
Weaknesses:
Recommendations:
By addressing these weaknesses, the PR will be significantly stronger and more likely to be accepted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @tmedicci :-) Amazing work on Python and perfect reporting, respect! :-)
We already have 4 reviewers and no pending questions, can it be merged? |
Summary
_PyRuntime
attributeThis commit also adds the check for the
__NuttX__
macro to the patch file that allows setting an attribute to the_PyRuntime
structure. The__NuttX__
macro is guaranteed to be present when building any application for NuttX.Impact
Impact on user: YES. Local changes to the Python application can use the
__NuttX__
macro.Impact on build: YES. Local changes to the Python application can use the
__NuttX__
macro to enable/disable features.Impact on hardware: NO
Impact on documentation: NO
Impact on security: NO
Impact on compatibility: NO
Testing
It can be tested with
rv-virt:python
(the only board currently supporting Python) by checking if the attribute is set to the_PyRuntime
structure.Building
Build it with:
Results
Check the generated
nuttx.map
file: it should shows that the_PyRuntime
structure is at section.PyRuntime
: