Skip to content

Feat/add cymem integration#5

Merged
ppenna merged 3 commits into
mainfrom
feat/add-cymem-integration
Feb 27, 2026
Merged

Feat/add cymem integration#5
ppenna merged 3 commits into
mainfrom
feat/add-cymem-integration

Conversation

@ppenna

@ppenna ppenna commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces major changes to the build and CI workflow, switching from downloading pre-built CPython artifacts to building CPython and the cymem module from source as submodules. It adds support for linking cymem as a built-in CPython module, updates the CI pipeline to reflect this new approach, and provides new scripts and tests to ensure proper integration. The most important changes are grouped below.

@ppenna ppenna self-assigned this Feb 27, 2026
@ppenna
ppenna force-pushed the feat/add-cymem-integration branch from 5dc518d to 9934524 Compare February 27, 2026 15:49
- Add nanvix/cpython and nanvix/cymem as git submodules (deps/)
- Rewrite z script: setup downloads Nanvix runtime + inits submodules +
  fetches CPython build deps; new 'build' command cross-compiles cymem
  and CPython from source with cymem.cymem as a built-in static module
- Add patches/cymem_builtin.c shim to bridge makesetup's init function
  naming (PyInit_cymem_cymem) with cymem's actual export (PyInit_cymem)
- Register cymem.cymem via Modules/Setup.local during CPython build
- Remove pre-built CPython/cymem artifact downloads from z script
- Update CI workflow: checkout with submodules, add build step,
  remove get-release-info job and CPYTHON_TAG/CYMEM_TAG variables
- Add cymem to site-packages-extra.txt (pure Python package files)
- Add functional test test_101_cymem.py (from cymem.cymem import Pool)
@ppenna
ppenna force-pushed the feat/add-cymem-integration branch from 9934524 to ce44aec Compare February 27, 2026 16:34
@ppenna
ppenna merged commit 63d3140 into main Feb 27, 2026
7 checks passed
@ppenna
ppenna deleted the feat/add-cymem-integration branch February 27, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant