2003-01-17 12:58:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PATH=$PATH:/usr/local/bin
|
|
|
|
|
|
|
|
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
|
|
|
|
PYTHON_GT=`python -c 'import string, sys; \
|
2003-01-23 12:49:00 +00:00
|
|
|
print string.split(sys.version)[0] >= "2.1.3"'`
|
2003-08-01 19:30:16 +00:00
|
|
|
if [ "x${PYTHON_GT}" = "x1" -o "x${PYTHON_GT}" = "xTrue" ]; then
|
2003-01-17 12:58:06 +00:00
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo "-----------------------------------------------------------"
|
2003-01-23 12:49:00 +00:00
|
|
|
echo "Mailman requires Python version 2.1.3 or greater -"
|
2003-01-17 12:58:06 +00:00
|
|
|
echo " please update your Python installation before proceeding."
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|