globaleaks / APAF

Anonymous Python Application Framework
33 stars 15 forks source link

Create statically linked python binary #54

Open hellais opened 11 years ago

hellais commented 11 years ago

This is a requirement for ooniprobe and it should be part of APAF:

Here is the ticket on the trac page:

https://trac.torproject.org/projects/tor/ticket/7557

fpietrosanti commented 11 years ago

We can use StaticPython: http://code.google.com/p/pts-mini-gpl/wiki/StaticPython

"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 .py or .so 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)."

We may have it supported with two different procedures, to be documented:

This support should be of use with Debian Packaging on Linux/x86 only.

fpietrosanti commented 11 years ago

Please consider that Static Python does not let you create UI based on QT: missing: GUI bindings (tkinter, GTK, Qt etc.)

Did we already identified how to technically implement UI elements for APAF on Linux?

fpietrosanti commented 11 years ago

Linked to https://trac.torproject.org/projects/tor/ticket/7557