Answer the question
In order to leave comments, you need to log in
How to ship Python with my application?
The Sublime text editor is written in Python built into the application. At the same time, the volume of service files does not seem to exceed 5 MB.
How did the author do it?
msvcp90.dll
msvcr90.dll
python26.dll
python26.zip
Answer the question
In order to leave comments, you need to log in
I've been poking around about this recently:
sourceforge.net/projects/pywin32/ and www.pyinstaller.org/
together allow you to create exe files. I tried other options, but only this one took off with Python 2.7 ...
Several options have already been written, I will add my own: Cython , we are building an application for them immediately under Linux, Windows and MacOS.
What surprises you? The Python DLL itself is two and a half megabytes in standard form, if desired, it can be further reduced if unnecessary built-in modules are excluded. The .zip file obviously stores the zipped bytecode - Python can import it directly from there. (By the way, you can zip the archive directly to a DLL or EXE.) Again, if you take only really used modules, the archive is unlikely to be large. The author, as I see it, also included standard MS libraries - in principle, you can twist it with the system msvcrt.dll
one, which will further reduce the size of the distribution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question