Commits

Tarek Ziadé  committed 22da53c

now calls get_platform() to get the right lib.VALUE

  • Participants
  • Parent commits 3a32a8e

Comments (0)

Files changed (1)

     echo Success
 fi
 
+LIB=$( python3.1 -c "from distutils.util import get_platform; import sys; print('lib.%s-%s' % (get_platform(), sys.version[0:3]))" )
+
+
 echo -n "Running tests for Python 3.1... "
 python3.1 setup.py build -q 2> /dev/null > /dev/null
 cp runtests.py build/
 cd build
-PYTHONPATH=lib.linux-x86_64-3.1/ python3.1 runtests.py -q 2> /dev/null
+PYTHONPATH=${LIB} python3.1 runtests.py -q 2> /dev/null 
 
 if [ $? -ne 0 ];then
     echo Failed
 python3.2 setup.py build -q 2> /dev/null > /dev/null
 cp runtests.py build/
 cd build
-PYTHONPATH=lib.linux-x86_64-3.1/ python3.2 runtests.py -q 2> /dev/null
+PYTHONPATH=${LIB} python3.2 runtests.py -q 2> /dev/null
 
 if [ $? -ne 0 ];then
     echo Failed
 python3.2 setup.py build -q 2> /dev/null > /dev/null
 cp runtests.py build/
 cd build
-PYTHONPATH=lib.linux-x86_64-3.1/ python3.3 runtests.py -q 2> /dev/null
+PYTHONPATH=${LIB} python3.3 runtests.py -q 2> /dev/null
 
 if [ $? -ne 0 ];then
     echo Failed