Support running tests with other versions of Python.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 30 Apr 2009 13:02:24 +0000 (13:04 +0002)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 30 Apr 2009 13:02:24 +0000 (13:04 +0002)
Makefile

index 516e41c3f30d6380f73f50fca422041ceb84bf2a..05a63bf8bc52e8818eb2c8f6e81771a931aa9085 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PYTHON = python
 SETUP = $(PYTHON) setup.py
-TRIAL = trial
+TRIAL = $(shell which trial)
 
 all: build 
 
@@ -12,10 +12,10 @@ install::
        $(SETUP) install
 
 check:: build
-       PYTHONPATH=. $(TRIAL) dulwich
+       PYTHONPATH=. $(PYTHON) $(TRIAL) dulwich
 
 check-noextensions:: clean
-       PYTHONPATH=. $(TRIAL) dulwich
+       PYTHONPATH=. $(PYTHON) $(TRIAL) dulwich
 
 clean::
        $(SETUP) clean