On Wed, Apr 1, 2009 at 12:39 AM, Dag Sverre Seljebotn
<[email protected]> wrote:
> Nicolas Dumazet wrote:
>> 2009/3/31 Lisandro Dalcin <[email protected]>:
>>> So setup.py should not do a lot of work. We have two ways to make this 
>>> possible.
>>>
>>> 1) push your patch, but let future Cython releases zip/tarballs ship C 
>>> sources.
>>> 2) implement this the right way, more or less in the spirit of
>>> numpy.distutils build_src command.
>>
>> For other readers, source is here :
>> http://projects.scipy.org/numpy/browser/trunk/numpy/distutils/command/build_src.py
>>
>>> Just to be clear, I'm +1 on your patch. However, I wanted to point out
>>> that this still is not the definitive solution.
>>
>> And I couldn't agree more with you.
>>
>> I looked at ways to avoid the extra setup.py work, it seems there's no
>> "easy way" here.
>
>  From what I hear, the usual opinion is that distutils is messed up
> beyond redemption for anything but simple Python package installation
> anyway and if one is serious about approaching optimal incremental
> builds, one should just switch to another tool; sooner rather than later.
>
> David Cournapeau knows a lot more about this, as he's working on
> numscons: SCons builds for NumPy. Perhaps we should ship a Cython plugin
> to e.g. SCons...David, do you know of any?

I implemented basic support last year during Robert's talk at scipy:

http://github.com/cournape/numscons/blob/bb3724e021c526f19eb6285492a5d2fb091ddd97/numscons/tools/cython.py

With an example there:

http://github.com/cournape/numscons/tree/bb3724e021c526f19eb6285492a5d2fb091ddd97/tests/examples/cython

I have never used it, though,

cheers,

David
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to