compiling all xdress output into a single .so file

37 views
Skip to first unread message

Geoffrey Irving

unread,
Apr 25, 2014, 2:10:34 PM4/25/14
to xdress
Xdress generates several different cython .pyx files, and it appears
to be awkward to compile these into a single .so file. The only
option I could find was to make a master .pyx file that includes all
of them:

http://stackoverflow.com/questions/11698482/project-structure-for-wrapping-many-c-classes-in-cython-to-a-single-shared-obj

How do others handle this situation?

Thanks,
Geoffrey

Anthony Scopatz

unread,
Apr 30, 2014, 12:24:23 PM4/30/14
to Geoffrey Irving, xdress
Hi Geoffrey, 

Sorry for taking so long to get back to you here.  In xdress, I would set the tarbase="mymodule" to the same name for all apinames in the xdressrc.py.  This way xdress would only produce one pyx file.  In general, though, you sort of need to have an *.so for each *.pyx.  If you really want to get around this you can use a master file with cimports or includes (which is deprecated) like the SO post mentions.  

Be Well
Anthony





--
You received this message because you are subscribed to the Google Groups "xdress" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/xdress/CAJ1ofpfy_hhT%2B%3D9qe73K68v7HH-CyxCuqdoPgN0wgGcbp%3D1NRQ%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages