selftest: skip base.dir2 tests as they just spin on modern ext4
[kai/samba.git] / install_with_python.sh
old mode 100644 (file)
new mode 100755 (executable)
index d7ae55d..7b51e5c
@@ -14,6 +14,8 @@ shift
 
 PATH=$PREFIX/python/bin:$PATH
 export PATH
+LD_LIBRARY_PATH=$PREFIX/python/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH
 
 VERSION="Python-2.6.5"
 
@@ -31,11 +33,14 @@ do_install_python() {
        rm -rf python_install || exit 1
 }
 
-if ! test -d $PREFIX/python; then
+if [ ! -d $PREFIX/python ]; then
    # needs to be installed
    do_install_python
 fi
 
+PYTHON=$PREFIX/python/bin/python
+export PYTHON
+
 `dirname $0`/configure --prefix=$PREFIX $@ || exit 1
 make -j || exit 1
 make install || exit 1