Changeset 12483 for packaging/centuryegg

Show
Ignore:
Timestamp:
11/11/10 14:42:19 (18 months ago)
Author:
build
Message:

Add SQLAlchemy and pytz to build-rpms. Remove pytz from find-srpms as the md5 hash seems to be bad (or we can't read the latest ones?). Use python_env for env vars

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • packaging/centuryegg/makeall

    r12470 r12483  
    11#!/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` 
     2source python_env 
    53if [ -f /etc/redhat-release ] && [ ! -f /etc/fedora-release ] ; 
    64then 
     
    2927    sudo yum install -y gcc 
    3028fi 
    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 then 
    35     BUILD_NEW_PYTHON=true 
    36     export BUILD_NEW_PYTHON 
    37     export PYTHON_SUFFIX=${MIN_PYTHON_MAJOR_VERSION}${MIN_PYTHON_MINOR_VERSION} 
    38     export PYTHON_SUFFIX2=-py$PYTHON_SUFFIX 
    39     export PYTHON_VERSION=${MIN_PYTHON_MAJOR_VERSION}.${MIN_PYTHON_MINOR_VERSION} 
    40 else 
    41     export PYTHON_VERSION=$(echo $PYTHON_VERSION | cut -d "." -f 1).$(echo $PYTHON_VERSION | cut -d "." -f 2) 
    42 fi 
    4329rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 
    4430if [ "$BUILD_NEW_PYTHON" == "true" ] 
     
    5440    sudo yum install -y python-setuptools-devel 
    5541fi 
    56 ./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" || exit 
     42./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" SQLAlchemy pytz || exit 
    5743if [ "x`rpm -qa Routes`" == "x" ] 
    5844then 
     
    9379./find-srpms "python-xlrd>=0.6" || exit 
    9480./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 1 
    9681./find-srpms PyXML || exit 1 
    9782# j5 build requires lxml, dateutil and pytz