cython/cython

[ENH] `--embed-modules` doesn't support packages

Offen

#7.365 geöffnet am 26.11.2025

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (1.517 Forks)batch import
Code Generationgood first issue

Repository-Metriken

Stars
 (8.663 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Is your feature request related to a problem? Please describe.

This generates invalid C code:

$ cython --embed --embed-modules=pkg.module  main.pyx

Describe the solution you'd like.

We should see if we can't support this. Unicode module name support (Punycode) is also missing.

Describe alternatives you've considered.

We could reject it as not supported, but we shouldn't silently generate invalid C code.

Additional context

No response

Contributor Guide