summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorderwinlu <derwinlu+git@gmail.com>2015-06-30 06:58:14 +0200
committerderwinlu <derwinlu+git@gmail.com>2015-06-30 08:33:45 +0200
commitd09360cd21c31323646b6df5eaf274ac845bff07 (patch)
tree6892a5148885d2b0ef16aac627f628f2a6a1b6b5 /Makefile
parentb9e39a8df9e22622ee582945c472521afea3f3aa (diff)
downloadrabbitmq-server-git-d09360cd21c31323646b6df5eaf274ac845bff07.tar.gz
add detection for python2.7
In python2.7 simplejson has been removed from stdlib and replaced with json. codegen.py already has a fallback import in place so no changes needed there. This way python2.7 can be detected if installed and rabbitmq-server can be compiled even if python is bound to python3.
Diffstat (limited to 'Makefile')
-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