make sure that pywin32 extensions are available on windows when executing windmill

git-svn-id: http://google-refine.googlecode.com/svn/trunk@928 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-06-01 06:56:58 +00:00
parent 82d3730568
commit ba2d94cc63

View File

@ -125,6 +125,14 @@ check_python() {
fi fi
} }
check_pywin32() {
PYWIN32="`$PYTHON -c 'import win32api' 2>&1`"
if [ ! -z "$PYWIN32" ]; then
error "This action requires you to have 'pywin32' windows extensions for Python installed on your machine. You can download it for free at http://sourceforge.net/projects/pywin32/"
fi
}
check_running() { check_running() {
check_downloaders check_downloaders
URL="http://${GRIDWORKS_HOST}:${GRIDWORKS_PORT}/" URL="http://${GRIDWORKS_HOST}:${GRIDWORKS_PORT}/"
@ -320,6 +328,7 @@ windmill_prepare() {
virtualenv_prepare virtualenv_prepare
if $CYGWIN ; then if $CYGWIN ; then
check_pywin32
WINDMILL="$PYTHON_HOME/Scripts/windmill.exe" WINDMILL="$PYTHON_HOME/Scripts/windmill.exe"
else else
WINDMILL="$PYTHON_HOME/bin/windmill" WINDMILL="$PYTHON_HOME/bin/windmill"