Relative paths with cython vs cythonize

4 views
Skip to first unread message

Source

unread,
Feb 18, 2023, 1:26:59 AM2/18/23
to cython-users
Hey. I hope I haven't asked this question before, there's no "search user" functionality here, so I can't lookup all of my questions/comments from before.

So I noticed that when using a relative path, in my case I have a module networkhandle.pyx in a directory called modules which is just a wrapper for the cpp in a directory under that called cpp, and I have to keep switching between the extern from path "cpp/mycppfiles.cpp" and "modules/cpp/mycppfiles.cpp" depending on whether I'm using cython (the executable) to create a standalone of my entire project as a whole, which relies on the aforementioned cpp modules being compiled with cythonize, or cythonize to compile the modules.

Is there any solutions to this except for keeping all my files in the same directory?
Reply all
Reply to author
Forward
0 new messages