Re: Running code from source that includes extension modules

2013-10-03 Thread Oscar Benjamin
On 2 October 2013 23:28, Michael Schwarz michi.schw...@gmail.com wrote: I will look into that too, that sounds very convenient. But am I right, that to use Cython the non-Python code needs to be written in the Cython language, which means I can't just copypast C code into it? For my current

Running code from source that includes extension modules

2013-10-02 Thread Michael Schwarz
Hi I've just started looking into distutils because I need to write an extension module in C (for performance reasons) and distutils seems to be the most straight-forward way. I've had success building a C file into a Python extension module using python setup.py build but I am wondering what

Re: Running code from source that includes extension modules

2013-10-02 Thread Gisle Vanem
Michael Schwarz michi.schw...@gmail.com wrote: So how do I run my code so it will find the built extension module? Do I pass the output directory on the command line manually or is there some other solution? I would like to still be able to run the code from the source directory as I'm using

Re: Running code from source that includes extension modules

2013-10-02 Thread Michael Schwarz
On 2013-W40-3, at 19:15, Gisle Vanem gva...@yahoo.no wrote: Michael Schwarz michi.schw...@gmail.com wrote: So how do I run my code so it will find the built extension module? Do I pass the output directory on the command line manually or is there some other solution? I would like to still

Re: Running code from source that includes extension modules

2013-10-02 Thread Stefan Behnel
Michael Schwarz, 02.10.2013 17:38: I've just started looking into distutils because I need to write an extension module in C (for performance reasons) and distutils seems to be the most straight-forward way. I've had success building a C file into a Python extension module using python

Re: Running code from source that includes extension modules

2013-10-02 Thread Michael Schwarz
On 2013-W40-3, at 21:15, Stefan Behnel stefan...@behnel.de wrote: Michael Schwarz, 02.10.2013 17:38: I've just started looking into distutils because I need to write an extension module in C (for performance reasons) and distutils seems to be the most straight-forward way. I've had success