11# Get the version of the app. This is used in the doc build.
22export VERSION =$(shell python setup.py --version)
33
4+ # Locations of Python interpreter binaries
5+ PYTHON26 =/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
6+ PYTHON25 =/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
7+ PYTHON24 =/Users/dhellmann/Devel/virtualenvwrapper/Python/2.4.6/bin/python2.4
8+
49# The main version of Python supported.
5- PRIMARY_PYTHON_VERSION =2.6
10+ PRIMARY_PYTHON_VERSION =$( PYTHON26 )
611
712# The test-quick pattern changes the definition of
813# this variable to only run against a single version of python.
9- ifeq ($(SUPPORTED_PYTHON_VERSIONS ) ,)
10- SUPPORTED_PYTHON_VERSIONS =2.5 2.6
14+ ifeq ($(PYTHON_BINARIES ) ,)
15+ PYTHON_BINARIES = $( PRIMARY_PYHTON_VERSION ) $( PYTHON25 ) $( PYTHON24 )
1116endif
1217
1318SUPPORTED_SHELLS =bash sh ksh zsh
@@ -81,9 +86,9 @@ test-zsh:
8186# - Install virtualenvwrapper into the new virtualenv
8287# - Run each test script in tests
8388test-loop :
84- for py_ver in $( SUPPORTED_PYTHON_VERSIONS ) ; do \
89+ for py_bin in $( PYTHON_BINARIES ) ; do \
8590 (cd $$ TMPDIR/ && rm -rf virtualenvwrapper-test-env \
86- && virtualenv -p /Library/Frameworks/Python.framework/Versions/ $$ py_ver/bin/python $$ py_ver --no-site-packages virtualenvwrapper-test-env) \
91+ && virtualenv -p $$ py_bin --no-site-packages virtualenvwrapper-test-env) \
8792 || exit 1 ; \
8893 $$ TMPDIR/virtualenvwrapper-test-env/bin/python setup.py install || exit 1 ; \
8994 for test_script in $( wildcard tests/test* .sh) ; do \
@@ -96,7 +101,10 @@ test-loop:
96101 done
97102
98103test-quick :
99- SUPPORTED_PYTHON_VERSIONS=$(PRIMARY_PYTHON_VERSION ) $(MAKE ) test-bash
104+ PYTHON_BINARIES=$(PRIMARY_PYTHON_VERSION ) $(MAKE ) test-bash
105+
106+ test-24 :
107+ PYTHON_BINARIES=$(PYTHON24 ) $(MAKE ) test-bash
100108
101109test-install :
102110 bash ./tests/manual_test_install.sh ` pwd` /dist " $( VERSION) "
0 commit comments