Hi,

I am investigating Cython as a solution for interfacing Python with some
existing C code. My application is cross-platform (running on Linux,
Windows, SunOs and possibly HPUX). 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

3. Cross-compile on Linux

Option 3 seems like a nightmare. Option 1 seems ideal assuming that
Cython is easy to deploy on all of the above platforms. Option 2 seems
to be perfectly possible, but 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?

I would really appreciate any feedback on the pros and cons of each of
the options from anyone with experience or knowledge in this area. I
also apologise for the scant details on the platforms - at this stage
I'm not sure exactly which SunOs/HPUX versions I will be using. So I'm
really looking for general guidance and best-practice rather than a
specific solution.


Thanks in advance!

Cheers,
David

--
David Jagoe
Xype Ltd
Phone: +44 (0) 117 9062146
Email: [email protected]


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

Reply via email to