On Wed, Jun 20, 2012 at 12:32 AM, Robert Bradshaw <
robe...@gmail.com> wrote:
>> I'm trying to create single executable file in Windows using Cython.
>> Ok, my Fibonacci.exe has 84 KB size. But it isn't standalone
>> application! How can I get it?
> You can try passing the --static flag to gcc to link everything in
> together, but you also have to worry about linking and shipping the
> entire standard library (or at least everything you use).
For something simple (like I assume Fibonacci.pyx is...) this may be
reasonable, but any "real" python program is going to require a lot if
stuff.
> It might be
> easier to ship an executable that simply contains a full python
> install to run against
That would be what py2ex, pyInstaller, py2App, bbfreeze, etc.. essentially do.
You could either:
simply use one of those, and use a python script as your front-end
or
use one of those to build a bundle of stuff you need, and hack it to
put your exe at the "front" -- bbfreee may the easiest for this
approach (it can provide a "frozen" interpreter), but I doubt there is
a point.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R
(206) 526-6959 voice
7600 Sand Point Way NE
(206) 526-6329 fax
Seattle, WA 98115
(206) 526-6317 main reception
Chris....@noaa.gov