interpreters/python: create Python's config files dynamically

The `Setup.local` and the `config.site` files are used by Python's
build system to, respectively, enable or disable Python's modules
and set/unset available functions in the target system. These files
are now set according to NuttX's configs, enabling or disabling
Python's features according to the configs set on NuttX.
This commit is contained in:
Tiago Medicci 2025-01-21 17:32:37 -03:00 • committed by CeDeROM
parent 5a7661a928
commit 4c6a6c7b16
4 changed files with 37 additions and 3 deletions

View file

@ -0,0 +1,49 @@
# This file gets copied into the Modules/ folder when building
# newlib configurations which do not support dynamic library
# loading.
*disabled*
_asyncio
_blake2
_bz2
_codecs_cn
_codecs_hk
_codecs_iso2022
_codecs_jp
_codecs_kr
_codecs_tw
_ctypes
_decimal
_elementtree
_hashlib
_heapq
_interpchannels
_interpqueues
_lsprof
_lzma
_md5
_multibytecodec
_sha1
_sha2
_sha2
_sha3
_sha3
_sqlite3
_ssl
_statistics
_testbuffer
_testcapi
_testclinic
_testclinic_limited
_testexternalinspection
_testinternalcapi
_testlimitedcapi
_uuid
_xxtestfuzz
_zoneinfo
mmap
pwd
pyexpat
readline
resource
xxsubtype