| Store | Cart

Re: [Python-Dev] Single-file Python executables (was: Computed Goto dispatch for Python 2)

From: Chris Barker <chri...@noaa.gov>
Thu, 28 May 2015 20:05:11 -0700
Getting lost as to what thread this belongs in...

But another tack to take toward a single executable is Cython's embedding
option:

https://github.com/cython/cython/wiki/EmbeddingCython

This is a quick and dirty way to create a C executable that will then run
the cythonized code, all linked to the python run time.

At this point, it still requires the python shared lib, and I think any
other compiled extension is shared, too. And if you run Cython on all the
python code and modules you use, you'll have a LOT of shared libs. But
perhaps one could re-do the linking step of all that and get a single
compiled exe.

and IIUC, the way Windows dll hell works, if you stuff the whole pile into
one dir -- you will get a single executable directory, if not a single file.

and about a 2X performance boost, as well, when you cythonize pure Python,
at least in my limited experience.

Just a thought.

-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

Chri...@noaa.gov

_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Steve Dower May 28, 2015 03:30 pm
Donald Stufft May 28, 2015 03:39 pm
Steve Dower May 28, 2015 03:45 pm
Barry Warsaw May 28, 2015 03:58 pm
Paul Moore May 28, 2015 04:38 pm
Wes Turner May 28, 2015 06:03 pm
Steven DAprano May 29, 2015 07:15 am
Donald Stufft May 28, 2015 04:44 pm
Barry Warsaw May 28, 2015 05:25 pm
Terry Reedy May 28, 2015 06:37 pm
M.-A. Lemburg May 28, 2015 06:13 pm
Chris Barker May 28, 2015 04:23 pm
Chris Barker May 28, 2015 04:28 pm
Paul Moore May 28, 2015 04:43 pm
David Cournapeau May 28, 2015 04:44 pm
Chris Angelico May 28, 2015 04:53 pm
Donald Stufft May 28, 2015 05:20 pm
Chris Angelico May 28, 2015 05:43 pm
Steven DAprano May 29, 2015 08:36 am
Paul Moore May 29, 2015 09:38 am
Stephen J. Turnbull May 29, 2015 10:35 am
Donald Stufft May 29, 2015 12:35 pm
Paul Sokolovsky May 29, 2015 02:23 pm
Chris Barker May 30, 2015 03:43 am
Antoine Pitrou May 29, 2015 12:57 pm
Donald Stufft May 28, 2015 04:54 pm
Chris Barker May 28, 2015 07:24 pm
Brett Cannon May 28, 2015 07:47 pm
Paul Moore May 28, 2015 08:29 pm
Terry Reedy May 29, 2015 02:42 pm
Nick Coghlan May 28, 2015 09:08 pm
Steven DAprano May 29, 2015 10:53 am
Paul Sokolovsky May 29, 2015 11:25 am
Brian Curtin May 28, 2015 05:04 pm
Chris Angelico May 28, 2015 05:15 pm
Paul Moore May 28, 2015 05:52 pm
Carl Meyer May 28, 2015 06:07 pm
Donald Stufft May 28, 2015 06:36 pm
Chris Angelico May 28, 2015 06:22 pm
Paul Moore May 28, 2015 07:26 pm
Glenn Linderman May 28, 2015 09:09 pm
Chris Barker May 29, 2015 03:05 am
Paul Moore May 29, 2015 10:33 am
Glenn Linderman May 29, 2015 08:49 pm
Paul Moore May 29, 2015 09:45 pm
Ryan Gonzalez May 29, 2015 09:57 pm
Glenn Linderman May 29, 2015 10:15 pm
Paul Moore May 29, 2015 10:28 pm
Glenn Linderman May 30, 2015 01:03 am
Steve Dower May 29, 2015 10:33 pm
Barry Warsaw May 28, 2015 05:19 pm
Ryan Gonzalez May 28, 2015 05:32 pm
Chris Barker May 28, 2015 06:11 pm
Ryan Gonzalez May 28, 2015 05:40 pm
Messages in this thread