Repository navigation
Conversation
Reviewer's GuideAPIDefine the public AOT build function and command-line options for producing Python-only or native module artifacts.
ImplementationImplement module-name validation, checked Cython compilation, and staged publication of generated Python and native artifacts.
ConfigurationDeclare optional AOT build dependencies and run cross-platform, multi-Python AOT tests in CI.
DocumentationDocument installation, artifact/import behavior, typed-mode implications, overlay builds, and trust constraints.
TestsCheck Python fallback, destination and input validation, native and typed builds, and dotted-module artifact layout.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
| fallback = output / relative | ||
| fallback.parent.mkdir(parents=True) |
There was a problem hiding this comment.
🟡 Medium · Dotted imports resolve to another package
When a dotted module name is built and a regular package with the same parent name exists elsewhere on sys.path, build_module creates package directories without __init__.py, so Python selects the regular package and ignores the generated namespace-package portion; importing the requested module fails or loads the other package’s version.
Ensure generated dotted modules resolve to the build output even when a regular package with the same name is on sys.path.
Add repy-aot for trusted REPY modules, optional Cython/setuptools build dependencies, checked compilation directives, explicit typed mode, platform-specific extension output with Python fallback, staged new-directory builds and cross-platform integration tests. Native artifacts are built offline rather than on application startup. Cython semantics are opt-in and must be validated; no claims of universal compatibility or speedup.
Summary by Sourcery
Add an optional offline native-compilation workflow for trusted REPY modules while retaining generated Python as a fallback.
New Features:
repy-aotcommand to build trusted REPY modules as platform-specific native extensions, alongside generated Python fallbacks.Enhancements:
Build:
aotoptional dependency group for Cython and setuptools.CI:
Documentation:
docs/aot.md.Tests: