This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir download /tmp/installdir; cd download; | |
wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz | |
tar -zxvf Python-2.7.12.tgz | |
cd Python-2.7.12 | |
yum -y install openssl-devel readline-devel bzip2-devel sqlite-devel zlib-devel ncurses-devel db4-devel expat-devel | |
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared --enable-ipv6 | |
make -j2 | |
make install DESTDIR=/tmp/installdir | |
echo '/sbin/ldconfig' > /tmp/installdir/run-ldconfig.sh | |
fpm -s dir -t rpm -n python27 -v 2.7.12 -C /tmp/installdir \ |