You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] cimport of editable-installed pxd dependencies does not work #7326
Say I have a package, mainpkg, that depends on a pxd file, test.pxd in another package, deppkg, like this
from deppkg.test cimport Test
where deppkg/test.pxd is:
cdef class Test:
int x
If I install deppkg as editable, using pip install -e deppkg, and then try to run
pip install mainpkg --no-build-isolation
(--no-build-isolation is necessary because I need the pxd file at build time), Cython fails to find deppkg/test.pxd with this error
Error compiling Cython file:
------------------------------------------------------------
...
from deppkg.test cimport Test
^
------------------------------------------------------------
mainpkg/test.pyx:1:0: 'deppkg/test.pxd' not found
Compiling ./mainpkg/test.pyx because it changed.
[1/1] Cythonizing ./mainpkg/test.pyx
If I install deppkg without the -e flag, I can build mainpkg.
changed the title [-][BUG] cimport of editable-installed pxd dependencies do not work[/-][+][BUG] cimport of editable-installed pxd dependencies does not work[/+]on Nov 14, 2025
Similar issues, although whether the specific limitation is sys.meta_path or sys.path_hooks related depends on your build backend and how it implements editable installs.
Activity
[-][BUG] cimport of editable-installed pxd dependencies do not work[/-][+][BUG] cimport of editable-installed pxd dependencies does not work[/+]vyasr commentedon Nov 14, 2025
cf. #5855
Similar issues, although whether the specific limitation is sys.meta_path or sys.path_hooks related depends on your build backend and how it implements editable installs.