Bug 870033 - use python2 executable if it exists; r=telliott rpm-1.0-9
authorRyan Kelly <rfkelly@mozilla.com>
Mon, 03 Jun 2013 20:57:18 +1000
changeset 544 ea29dd819ea7
parent 543 41f469aa678c
child 545 2578d6b83ae8
push id124
push userrkelly@mozilla.com
push date2013-06-03 11:06 +0000
reviewerstelliott
bugs870033
Bug 870033 - use python2 executable if it exists; r=telliott
Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
 DEPS = server-core,server-reg,server-storage
-VIRTUALENV = virtualenv
-PYTHON = bin/python
+PYTHON = `which python2 python | head -n 1`
+VIRTUALENV = virtualenv --python=$(PYTHON)
 NOSE = bin/nosetests -s --with-xunit
 TESTS = deps/server-core/services/tests deps/server-reg/syncreg/tests deps/server-storage/syncstorage/tests
 SERVER = dev-auth.services.mozilla.com
 SCHEME = https
 BUILDAPP = bin/buildapp
 BUILDRPMS = bin/buildrpms
 PYPI = http://pypi.python.org/simple
 PYPIOPTIONS = -i $(PYPI)