Port RISC OS support skeleton to Python 3.14#29
Draft
Copilot wants to merge 4 commits intopython-314from
Draft
Conversation
Co-authored-by: c-jo <1500011+c-jo@users.noreply.github.com>
Co-authored-by: c-jo <1500011+c-jo@users.noreply.github.com>
Co-authored-by: c-jo <1500011+c-jo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port RISC OS-specific changes to Python 3.14 branch
Port RISC OS support skeleton to Python 3.14
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Establishes RISC OS platform support structure from the
riscosbranch (Python 3.8.8 base) to enable Python 3.14 builds for RISC OS. Code uses Python 3.8 APIs and requires follow-up API modernization.Directory Structure
Makefile- RISC OS build system (updated VERSION=3.14)config.c,pyconfig.h- Module configurationgetpath.c- Module search paths with RISC OS conventionsswimodule.c- Software Interrupt (SWI) interfaceRiscPkg-314/- Package metadata (renamed from RiscPkg-38)_Python3/,_PythonSite/,_PythonUser/- Boot files and resourcesPlatform Conditionals
Added
#ifdef RISCOSblocks for platform-specific behavior:Path Handling
.for directory,,for search paths (RISC OS convention)Exception Handling
RISCOSErrorexception type witherrnumanderrmsgattributesBuild Integration
"riscos-1")Dynamic Loading
/soinstead of.so, path unixification via__unixify()System Integration
OS_ReadMonotonicTimeSWI instead of select()API Modernization Required
Module initialization in
RISCOS/config.candRISCOS/swimodule.cuses Python 3.8 patterns. Follow-up work needed to update to Python 3.14PyModuleDefstructure and exception APIs.Original prompt
Objective
Port the RISC OS-specific changes from the
riscosbranch (based on Python 3.8.8) to thepython-314branch (Python 3.14). This PR provides the skeleton structure for RISC OS support in Python 3.14.Background
The RISC OS port of Python includes:
riscos,swi).as directory separator and,as search path delimiter)Changes Required
Phase 1: Copy RISCOS Directory Structure
Copy the entire
RISCOS/directory from theriscosbranch, containing:RISCOS/Makefile- Build systemRISCOS/config.c- Module configurationRISCOS/pyconfig.h- Platform configurationRISCOS/getpath.c- Module search pathsRISCOS/swimodule.c- SWI (Software Interrupt) interfaceRISCOS/ReleaseNotes- DocumentationRISCOS/_Python3/- Boot files and spritesRISCOS/_PythonUser/- User filesRISCOS/RiscPkg-38/- Package metadata (rename to RiscPkg-314 and update version)Note: The code in these files will need to be updated for Python 3.14 API changes in a follow-up, but copy them as-is first to establish the structure.
Phase 2: Add Conditional Compilation Blocks
Add
#ifdef RISCOSblocks to the following files based on theriscosbranch:Include/osdefs.hAdd RISC OS path separators:
Include/cpython/pyerrors.hAdd RISCOSError exception structure:
Objects/exceptions.cAdd RISCOSError exception initialization:
Programs/python.cAdd riscosify control settings at the top:
Programs/_freeze_importlib.cAdd:
_Py_fstat_noraiseblock with:Modules/getbuildinfo.cIn the
Py_GetBuildInfo()function, replace the gitid initialization with:Python/dynload_shlib.cAdd multiple changes:
_PyImport_DynLoadFiletab:_PyImport_FindSharedFuncptr(), add RISCOS-specific path handling:Modules/_ssl.cIn the
_ssl_get_default_verify_paths_impl()function, add:Modules/timemodule.cIn the
pysleep()function, replace the select() call with:Python/initconfig.cAdd a RISC OS-specific version of
config_wstr_to_int():