6a07c0e8c0
zodb3 is different from zodb which is already in the database ports collection. The ZODB package is a Python object persistence system. It provides the Z Object Database separately from Zope so it can be used in non-Zope related Python applications to provide transparent object-oriented persistency. PR: ports/46108 Submitted by: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
17 lines
553 B
Bash
17 lines
553 B
Bash
#!/bin/sh
|
|
|
|
PATH=$PATH:/usr/local/bin
|
|
|
|
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
|
|
PYTHON_GT=`python -c 'import string, sys; \
|
|
print string.split(sys.version)[0] >= "2.1"'`
|
|
if [ "x${PYTHON_GT}" = "x1" ]; then
|
|
exit 0
|
|
else
|
|
echo "-----------------------------------------------------------"
|
|
echo "ZODB requires Python version 2.1 or greater -"
|
|
echo " please update your Python installation before proceeding."
|
|
echo "-----------------------------------------------------------"
|
|
exit 1
|
|
fi
|
|
fi
|