Minipy for centos 5/6

Source: Internet
Author: User
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
  1. Python 2.7.3 with complete programming functions on the server side (useless modules on the server such as sound and video are stripped)
  2. Integrate easy_install
  3. The complete Python package compiled is only4 MB
  4. 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
  1. Copy minipy. tgz to the host
  2. Tar xzvf minipy. tgz &./install-minipy/path/you/want/to/install
  3. Enjoy it!
Special thanks to the following projects
  1. Egenix pyrun http://www.egenix.com/products/python/PyRun
  2. UPX http://upx.sourceforge.net
  3. Freeze http://wiki.python.org/moin/Freeze
  4. Strip man strip
Here you can see http://linrc.com/minipy/project address https://github.com/auxten/miniPyRuntime

Minipy for centos 5/6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.