summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2015-06-30 11:06:45 +0300
committerMichael Klishin <michael@novemberain.com>2015-06-30 11:06:45 +0300
commit78a9581e01f1fc4a1d6d00b63e24f3a833afda96 (patch)
tree6892a5148885d2b0ef16aac627f628f2a6a1b6b5
parentb9e39a8df9e22622ee582945c472521afea3f3aa (diff)
parentd09360cd21c31323646b6df5eaf274ac845bff07 (diff)
downloadrabbitmq-server-git-78a9581e01f1fc4a1d6d00b63e24f3a833afda96.tar.gz
Merge pull request #204 from ingwinlu/python_detection
add detection for python2.7
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 41f250d160..6cab65e035 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,9 @@ USAGES_ERL=$(foreach XML, $(USAGES_XML), $(call usage_xml_to_erl, $(XML)))
ifeq ($(shell python -c 'import simplejson' 2>/dev/null && echo yes),yes)
PYTHON=python
else
+ifeq ($(shell python2.7 -c 'import json' 2>/dev/null && echo yes),yes)
+PYTHON=python2.7
+else
ifeq ($(shell python2.6 -c 'import simplejson' 2>/dev/null && echo yes),yes)
PYTHON=python2.6
else
@@ -40,6 +43,7 @@ PYTHON=python
endif
endif
endif
+endif
BASIC_PLT=basic.plt
RABBIT_PLT=rabbit.plt