Changeset 12483 for packaging/centuryegg
- Timestamp:
- 11/11/10 14:42:19 (18 months ago)
- Files:
-
- 1 modified
-
packaging/centuryegg/makeall (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
packaging/centuryegg/makeall
r12470 r12483 1 1 #!/bin/bash 2 export MIN_PYTHON_VERSION="2.5" 3 export MIN_PYTHON_MAJOR_VERSION=`echo $MIN_PYTHON_VERSION | cut -d "." -f 1` 4 export MIN_PYTHON_MINOR_VERSION=`echo $MIN_PYTHON_VERSION | cut -d "." -f 2` 2 source python_env 5 3 if [ -f /etc/redhat-release ] && [ ! -f /etc/fedora-release ] ; 6 4 then … … 29 27 sudo yum install -y gcc 30 28 fi 31 # Is the official python version high enough for us just to build?32 PYTHON_VERSION=`rpm -q --queryformat="%{v}" python`33 if [ `echo $PYTHON_VERSION | cut -d "." -f 1` == $MIN_PYTHON_MAJOR_VERSION ] && [ `echo $PYTHON_VERSION | cut -d "." -f 2` -lt $MIN_PYTHON_MINOR_VERSION ]34 then35 BUILD_NEW_PYTHON=true36 export BUILD_NEW_PYTHON37 export PYTHON_SUFFIX=${MIN_PYTHON_MAJOR_VERSION}${MIN_PYTHON_MINOR_VERSION}38 export PYTHON_SUFFIX2=-py$PYTHON_SUFFIX39 export PYTHON_VERSION=${MIN_PYTHON_MAJOR_VERSION}.${MIN_PYTHON_MINOR_VERSION}40 else41 export PYTHON_VERSION=$(echo $PYTHON_VERSION | cut -d "." -f 1).$(echo $PYTHON_VERSION | cut -d "." -f 2)42 fi43 29 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 44 30 if [ "$BUILD_NEW_PYTHON" == "true" ] … … 54 40 sudo yum install -y python-setuptools-devel 55 41 fi 56 ./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" || exit42 ./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" SQLAlchemy pytz || exit 57 43 if [ "x`rpm -qa Routes`" == "x" ] 58 44 then … … 93 79 ./find-srpms "python-xlrd>=0.6" || exit 94 80 ./find-srpms python-imaging python-simplejson MySQL-python numpy python-pgsql protobuf python-lxml python-crypto python-suds python-dateutil || exit 95 ./find-srpms pytz || exit 196 81 ./find-srpms PyXML || exit 1 97 82 # j5 build requires lxml, dateutil and pytz
