Permalink
Browse files

Search harder for a python that supports simplejson.

  • Loading branch information...
1 parent 8fb52ff commit 548257ad38d4b7a099de575c0b02ac0dbfecc178 @tonyg tonyg committed Nov 9, 2009
Showing with 13 additions and 0 deletions.
  1. +13 −0 Makefile
View
@@ -2,7 +2,20 @@ SIBLING_CODEGEN_DIR=../rabbitmq-codegen/
AMQP_CODEGEN_DIR=$(shell [ -d $(SIBLING_CODEGEN_DIR) ] && echo $(SIBLING_CODEGEN_DIR) || echo codegen)
AMQP_SPEC_JSON_PATH=$(AMQP_CODEGEN_DIR)/amqp-0.8.json
+ifeq ($(shell python -c 'import simplejson' 2>/dev/null && echo yes),yes)
PYTHON=python
+else
+ifeq ($(shell python2.6 -c 'import simplejson' 2>/dev/null && echo yes),yes)
+PYTHON=python2.6
+else
+ifeq ($(shell python2.5 -c 'import simplejson' 2>/dev/null && echo yes),yes)
+PYTHON=python2.5
+else
+# Hmm. Missing simplejson?
+PYTHON=python
+endif
+endif
+endif
all: pika/spec.py

0 comments on commit 548257a

Please sign in to comment.