2005-11-22 01:10:28 +01:00
|
|
|
# -*- shell-script-mode -*-
|
|
|
|
|
|
|
|
[Meta]
|
|
|
|
RootName: @python.org/python-xml
|
|
|
|
DisplayName: Python bindings for XML
|
|
|
|
ShortName: python-xml
|
|
|
|
Skeleton-Author: Filippos Papadopoulos <filip@cs.uoi.gr>
|
|
|
|
Skeleton-Version: 1
|
|
|
|
|
|
|
|
[Notes]
|
2005-11-29 11:23:34 +01:00
|
|
|
Distros like SuSE split some features of core python (like xml) to python-xml e.t.c
|
|
|
|
So python-xml must have the same versions as python
|
2005-11-22 01:10:28 +01:00
|
|
|
|
|
|
|
[Test]
|
2005-11-29 11:23:34 +01:00
|
|
|
SOFTWARE_VERSIONS=$( locateCommand python -V 2>&1 | cut -f2 -d' ' )
|
2005-11-22 01:10:28 +01:00
|
|
|
testForPythonModule xml
|
|
|
|
if [[ "$?" != "0" ]]; then
|
|
|
|
INTERFACE_VERSIONS=""
|
|
|
|
else
|
2005-11-29 11:23:34 +01:00
|
|
|
INTERFACE_VERSIONS=$( echo $SOFTWARE_VERSIONS | awk -F. '{print $1 "." $2}' )
|
2005-11-22 01:10:28 +01:00
|
|
|
fi
|