mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 15:32:21 +08:00
interpreters/python: Add Python's port to NuttX
This is the NuttX's port of Python (cpython)! Initial support of Python includes building the Python's static library and the `python` (Programs/python.c) application. Python's modules are stored in `pyc` (byte-code file) and loaded as needed from flash.
This commit is contained in:

committed by
Alan C. Assis

parent
9d7714f843
commit
efc1bf710c
27
interpreters/python/patch/0008-declare-struct-timeval.patch
Normal file
27
interpreters/python/patch/0008-declare-struct-timeval.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
From b40e89c190ec7c6b3b0116a3f7025ab13854398f Mon Sep 17 00:00:00 2001
|
||||
From: Tiago Medicci <tiago.medicci@espressif.com>
|
||||
Date: Wed, 13 Nov 2024 14:23:34 -0300
|
||||
Subject: [PATCH 08/10] declare struct timeval
|
||||
|
||||
Otherwise, build will fail due to redefinition of _PyTime_FromTimeval
|
||||
---
|
||||
Include/internal/pycore_time.h | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/Include/internal/pycore_time.h b/Include/internal/pycore_time.h
|
||||
index 205ac5d3781..c30e07f4b4a 100644
|
||||
--- a/Include/internal/pycore_time.h
|
||||
+++ b/Include/internal/pycore_time.h
|
||||
@@ -58,9 +58,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
-#ifdef __clang__
|
||||
struct timeval;
|
||||
-#endif
|
||||
|
||||
#define _SIZEOF_PYTIME_T 8
|
||||
|
||||
--
|
||||
2.46.1
|
||||
|
Reference in New Issue
Block a user