Yes, that's exactly what I want to do. But, from what I understand, each module or submodule (.py file) must link to its own .pyd file, ie module1.py -> _module1.pyd, module2.py -> _module2.pyd.<div><br></div><div>
What I would really love to have is:</div><div><br></div><div>myPackage/</div><div>myPackage/__init__.py</div><div>myPackage/module1.py -> linked to _mySingleAPI.pyd</div><div>myPackage/module2.py -> linked to _mySingleAPI.pyd</div>
<div><br></div><div>I just need a way to have some sort of modularity within my application. I cannot split my main project into smaller projects, it would require a huge amount of time.<br><br><div class="gmail_quote">On Tue, Nov 15, 2011 at 10:20 AM, Jim Bosch <span dir="ltr"><<a href="mailto:talljimbo@gmail.com">talljimbo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 11/15/2011 10:00 AM, Olivier Voyer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jim, thank you for your answer.<br>
<br>
What if I have this big C++ project that I cannot split in multiple<br>
smaller projects? I have no choice but to create a big Python module<br>
exposing all the functions/classes? What is the common practice?<br>
<br>
</blockquote>
<br></div>
It sounds like you just want to make a Python package - a directory with an __init__.py file that contains all your submodules, which can each be compiled separately.<br>
<br>
Is there some reason you felt you needed to put all the modules in the same pyd file?<div class="HOEnZb"><div class="h5"><br>
<br>
Jim<br>
______________________________<u></u>_________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org" target="_blank">Cplusplus-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/cplusplus-sig</a><br>
</div></div></blockquote></div><br></div>