| 1 | #!/bin/bash |
|---|
| 2 | if [ "$BUILD_NEW_PYTHON" != "true" ] && [ "x`yum search python-matplotlib | grep python-matplotlib`" != "x" ] |
|---|
| 3 | then |
|---|
| 4 | sudo yum -y install python-matplotlib |
|---|
| 5 | exit |
|---|
| 6 | fi |
|---|
| 7 | if [ "x`rpm -qa numpy$PYTHON_SUFFIX`" == "x" ] |
|---|
| 8 | then |
|---|
| 9 | sudo rpm -Uvh rpms/numpy$PYTHON_SUFFIX* |
|---|
| 10 | fi |
|---|
| 11 | if [ "x`rpm -qa libglade2-devel`" == "x" ] |
|---|
| 12 | then |
|---|
| 13 | sudo yum -y install libglade2-devel |
|---|
| 14 | fi |
|---|
| 15 | ./find-srpms python-numeric || exit 1 |
|---|
| 16 | ./find-srpms python-numarray || exit 1 |
|---|
| 17 | if [ "x`rpm -qa python$PYTHON_SUFFIX-numeric`" == "x" ] |
|---|
| 18 | then |
|---|
| 19 | sudo rpm -Uvh rpms/python$PYTHON_SUFFIX-numeric*.rpm |
|---|
| 20 | fi |
|---|
| 21 | if [ "x`rpm -qa python$PYTHON_SUFFIX-numarray`" == "x" ] |
|---|
| 22 | then |
|---|
| 23 | sudo rpm -Uvh rpms/python$PYTHON_SUFFIX-numarray*.rpm |
|---|
| 24 | fi |
|---|
| 25 | ./find-srpms "cairo>=1.4" || exit 1 |
|---|
| 26 | if [ "x`rpm -qa cairo-devel | grep 1.4`" == "x" ] |
|---|
| 27 | then |
|---|
| 28 | sudo rpm -Uvh rpms/cairo-*.rpm |
|---|
| 29 | fi |
|---|
| 30 | ./find-srpms "pycairo>=1.4" || exit 1 |
|---|
| 31 | if [ "x`rpm -qa pycairo$PYTHON_SUFFIX2-devel`" == "x" ] |
|---|
| 32 | then |
|---|
| 33 | sudo rpm -Uvh rpms/pycairo$PYTHON_SUFFIX2-*.rpm |
|---|
| 34 | fi |
|---|
| 35 | GLIB2_VERSION=`yum info glib2-devel | grep Version | head -n 1 | sed -e "s/[ \t]\+/ /g" | cut -d ":" -f 2 | cut -d " " -f 2` |
|---|
| 36 | if [ `echo $GLIB2_VERSION | cut -d "." -f 1` == "2" ] && [ `echo $GLIB2_VERSION | cut -d "." -f 2` -ge 8 ] |
|---|
| 37 | then |
|---|
| 38 | ./find-srpms pygobject2 || exit 1 |
|---|
| 39 | if [ "x`rpm -qa pygobject2$PYTHON_SUFFIX2-devel`" == "x" ] |
|---|
| 40 | then |
|---|
| 41 | sudo rpm -Uvh rpms/pygobject2$PYTHON_SUFFIX2*.rpm |
|---|
| 42 | fi |
|---|
| 43 | fi |
|---|
| 44 | ./find-srpms pygtk2 || exit 1 |
|---|
| 45 | if [ "x`rpm -qa pygtk2-devel`" != "x" ] |
|---|
| 46 | then |
|---|
| 47 | rpm -e pygtk2-devel || exit 1 |
|---|
| 48 | fi |
|---|
| 49 | if [ "x`rpm -qa pygtk2$PYTHON_SUFFIX2-devel`" == "x" ] |
|---|
| 50 | then |
|---|
| 51 | sudo rpm -Uvh rpms/pygtk2$PYTHON_SUFFIX2*.rpm |
|---|
| 52 | fi |
|---|
| 53 | ./find-srpms "python-matplotlib>=0.91.2" || exit 1 |
|---|
| 54 | rm -f rpms/python$PYTHON_SUFFIX-matplotlib-tk* |
|---|