Z
Z
zencd2011-09-12 18:38:48
Python
zencd, 2011-09-12 18:38:48

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

5 answer(s)
X
XuMiX, 2011-09-12
@XuMiX

www.py2exe.org/
www.pyinstaller.org/
Something like this

S
simplecode, 2011-09-12
@simplecode

py2exe might be...

D
Dmitry Sidorov, 2011-09-12
@Doomsday_nxt

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 ...

H
Honeyman, 2011-09-13
@Honeyman

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.

M
MikhailEdoshin, 2011-09-13
@MikhailEdoshin

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.dllone, which will further reduce the size of the distribution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question