2009/5/6 Lisandro Dalcin <[email protected]>: > > --- Snip --- > >> Can anyone tell me the easy/right way to add include paths for pyximport on >> windows. Is there a better and portable way to do this? > > > AFAIK, pyximport does not support this at all... However, it would be > really easy to enhance it. I would add a 'options' or 'config' (or > whatever name) at the end of "pyximport.install()" (or perhaps provide > a new call for this task) accepting a dictionary. That dictionary > should contain stuff to pass as kwargs to the distutils Extension, the > more important ones would be > > include_dirs > define_macros > undef_macros > library_dirs > libraries > runtime_library_dirs > > That stuff should be (after checking and perhaps sanitizing the dict > contents) passed to Extension() in > "pyximport.get_distutils_extension()". > > Unfortunately, I'm really busy to implement something like that for review. >
Hi Lisandro. I've just had a look at the pyximport files, and what you are suggesting makes sense to me. I'll give it a go myself, and then get back to the list with any progress. Thanks, Brett -- Brett Calcott Philosophy Program, Research School of Social Sciences, AND Centre for Macroevolution & Macroecology, School of Botany & Zoology, AUSTRALIAN NATIONAL UNIVERSITY, Canberra, ACT, 0200, AUSTRALIA _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
