Re: Extending and embedding Python

2005-07-11 Thread Martin v. Löwis
Tommy Nordgren wrote: > In order to correctly compile and link my Application, I need a OS > independent way to find compiler options and linker options necessary to > find header files and libraries. What methods should I use from > DistUtils for this purpose. I don't think distutils supports

Re: Extending and Embedding

2005-03-13 Thread Eduardo Rodrigues
Sorry, I guess that I wasn't clear. I've made a module using swig that wrap functions written in C. If I load that module in python using: >>> from import * it works fine. But if I execute this same command using PyRun_SimpleString in another code written in C, it doesn't work, i.e. I can't load

Re: Extending and Embedding

2005-03-13 Thread Diez B. Roggisch
Eduardo Rodrigues wrote: > How can I load a module (written in C as a shared > library (.so)) through "PyRun_SimpleString"? > > I've tried "from import *", but a got a > message: ImportError: No module named You can't do this. You have to either wrap the module - which is possible in several w