extending and embedding python without distutils

2005-09-26 Thread Benjamin Rutt
I have a rather large C++ project which has his own build system (scons) and I would prefer to stay inside scons in order to build some python extensions/embeddings (that is, I prefer to avoid using distutils directly to build my extensions). Can someone confirm that I'm doing the right thing to p

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

Extending and embedding Python

2005-07-11 Thread Tommy Nordgren
I want to write an application that embeds and extends (at least) the Python and Perl interpreters. Now i want to find as much as possible about the Python tools used for extending and embedding Python. To be more specific: My app should: 1. Parse an input file. 2. Call a script in some

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

Extending and Embedding

2005-03-13 Thread Eduardo Rodrigues
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 Thanks in advance. Erocha Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://