Less than 5 MB Python runtime environment for centos 5/6
Users who use python for server-side programming may have encountered that the Python version on the server is not uniform and does not meet their own needs. It is too troublesome to install a python on each server, it also occupies a lot of extra space. I have made a complete Python runtime environment that can run independently. I hope it will help you.
Features
- Python 2.7.3 with complete programming functions on the server side (useless modules on the server such as sound and video are stripped)
- Integrate easy_install
- The complete Python package compiled is only4 MB
- The compiled package can be directly copied to any centos5/6 host for running without compilation. (Only dependent on common server libraries such as libz, libbz2, libkrb, and libsqlite)
Now we only test on centos 5/6 using mini Python 2.7.3 runtime Builder Based on "egenix pyrun". The complete functions of server-side programming were previously placed on GitHub, and readme was still written in English, it may be inconvenient for everyone to read. I moved it here today.
Obtain minipy
Click here to download minipy:Baidu cloud disk 360 cloud disk (extraction code: 3982)If you want to try it on your own, you only need:# Compile the machine to install SQLite-devel, bzip2-devel, OpenSSL-static $ sudo Yum install-y SQLite-devel bzip2-devel OpenSSL-static $ git clone https://github.com/auxten/miniPyRuntime.git & CD minipyruntime & make the compiled minipy is in DIST/minipy. tgz. For example, our minipy mainly depends on the following so. These libraries are installed on General hosts and ABI is relatively stable [[email protected] ~ /Minipyruntime] $ LDD Dist/bin/Python linux-vdso.so.1 => (0x00007fff170d3000) libkrb5.so. 3 =>/lib64/libkrb5.so. 3 (0x0000003a8aa00000) libkrb5support. so.0 =>/lib64/libkrb5support. so.0 (0x0000003a8ba00000) libk5crypto. so.3 =>/lib64/libk5crypto. so.3 (0x0000003a8a600000) libz. so.1 =>/lib64/libz. so.1 (0x0000003a89a00000) libsqlite3.so. 0 =>/usr/lib64/libsqlite3.so. 0 (0x0000003f75600000) libbz2.so. 1 =>/lib64/libbz2.so. 1 (0x0000003f79a00000) libpthread. so.0 =>/lib64/libpthread. so.0 (0x0000003f75200000) libdl. so.2 =>/lib64/libdl. so.2 (0x0000003f74e00000) libutil. so.1 =>/lib64/libutil. so.1 (0x0000003f78600000) libm. so.6 =>/lib64/libm. so.6 (0x00007f1a1bb78000) libc. so.6 =>/lib64/libc. so.6 (0x0000003f74a00000) libcom_err.so.2 =>/lib64/libcom_err.so.2 (0x0000003a8a200000) libkeyutils. so.1 =>/lib64/libkeyutils. so.1 (0x0000003a8b600000) libresolv. so.2 =>/lib64/libresolv. so.2 (0x0000003f76e00000) libselinux. so.1 =>/lib64/libselinux. so.1 (0x0000003a89e00000)/lib64/ld-linux-x86-64.so.2 (0x0000003f74600000)
Installation and Use
- Copy minipy. tgz to the host
- Tar xzvf minipy. tgz &./install-minipy/path/you/want/to/install
- Enjoy it!
Special thanks to the following projects
- Egenix pyrun http://www.egenix.com/products/python/PyRun
- UPX http://upx.sourceforge.net
- Freeze http://wiki.python.org/moin/Freeze
- Strip man strip
Here you can see http://linrc.com/minipy/project address https://github.com/auxten/miniPyRuntime
Minipy for centos 5/6