#$DELIM ${PRODUCT_TYPE} $DELIM
export PYTHONHOME=\${INSTALL_ROOT}/${PRODUCT}
export PATH=\${PYTHONHOME}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${PYTHONHOME}/lib:\${LD_LIBRARY_PATH}
export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
export PYTHON_INCLUDE=\${PYTHONHOME}/include/python\${PYTHON_VERSION}
export PYTHONPATH=\${PYTHONHOME}/lib/python\${PYTHON_VERSION}:\${PYTHONPATH}
path=`sort_path ${tmp}`
tmp="\${PYTHONHOME}/lib/python\${PYTHON_VERSION} ${pythonhome}/lib/python${maj_ver}.${min_ver} \${PYTHONPATH} ${PYTHONPATH}";
pythonpath=`sort_path ${tmp}`
+ tmp="\${PYTHONHOME}/lib ${pythonhome}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
+ ld_library_path=`sort_path ${tmp}`
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export PYTHONHOME=${pythonhome}
export PATH=${path}
+export LD_LIBRARY_PATH=${ld_library_path}
export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
export PYTHON_INCLUDE=\${PYTHONHOME}/include/python\${PYTHON_VERSION}
export PYTHONPATH=${pythonpath}
cd ${PRODUCT_WORK}
check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
- ./configure --prefix=${PRODUCT_DIR} --with-threads --with-cxx=`which g++`
+ ./configure --prefix=${PRODUCT_DIR} --with-threads --with-cxx=`which g++` --enable-shared
# vsr: not compiled on RedHat8.0 without libstdc++.so
sed -e 's%LIBS= -ldl -lpthread -lutil%LIBS= -ldl -lpthread -lutil -lstdc++%g' Makefile > _Makefile
mv -f _Makefile Makefile
check_job ${PRODUCT_DIR}/MAKE.LOG make
check_job ${PRODUCT_DIR}/MAKINSTALL.LOG make install
+(cd ${PRODUCT_DIR}/lib/python2.3/config; ln -s ../../libpython2.3.so.1.0 libpython2.3.so)
+
+cd ${PRODUCT_DIR}/bin
+sed -e "s%#\!.*python%#\!/usr/bin/env python%" pydoc > _pydoc
+mv -f _pydoc pydoc
+chmod a+x pydoc
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
-rm -fr ${PRODUCT_WORK}
+cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
print_env
}
check_jb tar xfz ${SOURCE_DIR}/Python-2.3.4.tar.gz -C ${INSTALL_ROOT}
+cd ${PRODUCT_DIR}/bin
+sed -e "s%#\!.*python%#\!/usr/bin/env python%" pydoc > _pydoc
+mv -f _pydoc pydoc
+chmod a+x pydoc
+
print_env
}
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh
-${PROCEDURE}
\ No newline at end of file
+${PROCEDURE}