KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have several python modules (organized into packages), which depend on each other . e.g. Module1 Module2: imports Module1 Module3 Module4: imports Module3, Module 2, Module 1 Let's assume the relevant interface to develop applications is in Module4 and I want to generate a Module4.so using cython . If I proceed in the naive way, I get an extension Module4.so which I can import BUT the extension relies on the python source code of Module1, Module2, Module3. Is there a way to compile so that also Module1,Module2, Module3 are compiled and linked to Module4? I would like to avoid doing everything manually , e.g. first compile Module1.so then change import declaration in Module2, so as to import Module1.so rather than Module1.py, then compile Module2 into Module2.so and so on....
Tags (comma-separated)
Save Edits
Cancel