1
1
# Get the version of the app. This is used in the doc build.
2
2
export VERSION =$(shell python setup.py --version)
3
3
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
+
4
9
# The main version of Python supported.
5
- PRIMARY_PYTHON_VERSION =2.6
10
+ PRIMARY_PYTHON_VERSION =$( PYTHON26 )
6
11
7
12
# The test-quick pattern changes the definition of
8
13
# 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 )
11
16
endif
12
17
13
18
SUPPORTED_SHELLS =bash sh ksh zsh
@@ -81,9 +86,9 @@ test-zsh:
81
86
# - Install virtualenvwrapper into the new virtualenv
82
87
# - Run each test script in tests
83
88
test-loop :
84
- for py_ver in $( SUPPORTED_PYTHON_VERSIONS ) ; do \
89
+ for py_bin in $( PYTHON_BINARIES ) ; do \
85
90
(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) \
87
92
|| exit 1 ; \
88
93
$$ TMPDIR/virtualenvwrapper-test-env/bin/python setup.py install || exit 1 ; \
89
94
for test_script in $( wildcard tests/test* .sh) ; do \
@@ -96,7 +101,10 @@ test-loop:
96
101
done
97
102
98
103
test-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
100
108
101
109
test-install :
102
110
bash ./tests/manual_test_install.sh ` pwd` /dist " $( VERSION) "
0 commit comments