python2x
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
This app builds an image containing the already-compiled Python shared object for Python 2.x (libpython2.7.so for example) installed on the build machine, and some of the required libraries from the build machine. In order to build this app you need to have Python development package installed for your distribution. Examples how to do it: sudo apt-get install python-dev # On Ubuntu sudo dnf install python-devel # On Fedora The python home directory is assumed to be installed under <sys.prefix>/lib/python<sys.version_info.major>.<sys.version_info.minor>/ where sys is Python package this script reads the sys.* values from. Please note that any extra modules found under site-packages or dist-packages directories are filtered out from the image. Example usage: ./scripts/run.py -e "/python" ./scripts/run.py -e "/python -c \"aa={1:22,3:44}; print aa; print 'asdf'\"" ./scripts/run.py --api -e "/python -m SimpleHTTPServer 8000"