天天看点

python 2.7 自定义 RPM 编译[备忘]

要求

把 python 2.7 进行编译

安装目标位置

可执行文件位置   /apps/svr/python27

其他库文件, 头文件, doc 安装位置  /apps/lib/python27

对应源码 python-2.7.5.tar.gz

参见  python-2.7_centos5.8.spec 文件

编译方法

参见 python-2.7_centos6.5.spec 文件