cython/cython

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

Open

#7.365 geöffnet am 26. Nov. 2025

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (8.663 Stars) (1.517 Forks)batch import
Code Generationgood first issue

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