[go: up one dir, main page]

Skip to content

Commit

Permalink
extended doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Szabo committed Feb 22, 2016
1 parent fcc7382 commit 4561c5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions staticpython.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
</head><body>
<h1><a name="What_is_StaticPython_?"></a>What is StaticPython?<a href="#What_is_StaticPython_?" class="section_anchor"></a></h1>
<p>StaticPython is a statically linked version of the Python 2.x (currently 2.7.1) and 3.x (currently 3.2) and Stackless Python interpreters and their standard modules for 32-bit (i686, i386, x86) Linux, Mac OS X and FreeBSD systems. It is distributed as single, statically linked 32-bit executable binaries, which contains the Python scripting engine, the interactive interpreter with command editing (readline), the Python debugger (pdb), most standard Python modules (including pure Python modules and C extensions), coroutine support using greenlet and multithreading support. The binary contains both the pure Python modules and the C extensions, so no additional <tt>.py</tt> or <tt>.so</tt> files are needed to run it. It also works in a chroot environment. The binary uses uClibc, so it supports username lookups and DNS lookups as well (without NSS).</p>
<p>StaticPython is open-source, and it's available on <a href="https://github.com/pts/staticpython">GitHub</a>. It builds the statically linked binary from the CPython 2.7 and 3.2 sources with some small modifications.
<p>StaticPython is similar to <a href="http://pypi.python.org/pypi/egenix-pyrun">PyRun</a>, except that StaticPython doesn't let you compile C extensions, and PyRun needs several libraries (e.g. glibc, OpenSSL, zlib, SQLite, bzip2) installed on the host, and StaticPython doesn't need anything (it runs even if it's the only file on the filesystem). Another important difference is that PyRun integrates nicely with packaging (setuptools, pip etc.), and is a nice, self-contained replacement for virtualenv. StaticPython doesn't help you with packaging, you have to do Python library installation and distribution manually. See this <a href="http://ptspts.blogspot.com/2014/06/whats-difference-between-staticpython.html">blog post</a> for a more detailed comparison</p>
<p>StaticPython is similar to <a href="http://www.portablepython.com/">Portable Python</a>, except that StaticPython runs on Linux instead of Windows, and it has Stackless Python, greenlet and coroutine-based I/O library support.</p>
<p>StaticPython is similar to <a href="http://micropython.org">MicroPython</a>
Expand Down

0 comments on commit 4561c5d

Please sign in to comment.