[Cython] Cross-platform extensions
David Jagoe
davidjagoe at gmail.com
Tue Jan 20 14:32:54 CET 2009
2009/1/20 Stefan Behnel <stefan_ml at behnel.de>:
> David Jagoe wrote:
>> It seems that there are three
>> possible ways of deploying a Cython application cross-platform:
>>
>> 1. Run Cython on all the platforms (and use Cython.DistUtils to manage
>> deployment)
>>
>> 2. Run Cython on Linux only
>> - do the pyx -> c compilation step on Linux
>> - Use standard distutils + gcc on each platform to build the
>> application
>>
>> [...]
>> I'm not sure: does the Cython compiler
>> generate C that can be compiled on any platform with python dev headers
>> and the appropriate compiler available?
>
> 2) is actually the preferred way of doing it. Cython does not generate
> platform-specific code, regardless of the system you run it on.
>
> The usual way is to build a source distribution once (including the
> generated .c files in MANIFEST.in) and then just build that on other
> systems using distutils but without Cython.
>
Excellent, thank you very much for your quick response!
Cheers,
David
More information about the Cython-dev
mailing list