Commits

Andriy Kornatskyy  committed 265750a

Added /opt/local/bin to a search path for python; use sphinx from virtualenv.

  • Participants
  • Parent commits c306705

Comments (0)

Files changed (1)

 EASY_INSTALL=env/bin/easy_install-$(VERSION)
 PYTEST=env/bin/py.test-$(VERSION)
 NOSE=env/bin/nosetests-$(VERSION)
-SPHINX=/usr/bin/python /usr/bin/sphinx-build
+SPHINX=env/bin/python$(VERSION) env/bin/sphinx-build
 
 all: clean po doctest-cover test release
 
 		mercurial
 
 env:
-	PYTHON_EXE=/usr/local/bin/python$(VERSION); \
+	PYTHON_EXE=/usr/local/bin/python$(VERSION) ; \
 	if [ ! -x $$PYTHON_EXE ]; then \
-		PYTHON_EXE=/usr/bin/python$(VERSION); \
-	fi;\
+		PYTHON_EXE=/opt/local/bin/python$(VERSION) ; \
+		if [ ! -x $$PYTHON_EXE ]; then \
+			PYTHON_EXE=/usr/bin/python$(VERSION) ; \
+		fi ; \
+	fi ; \
 	VIRTUALENV_USE_SETUPTOOLS=1; \
 	export VIRTUALENV_USE_SETUPTOOLS; \
 	virtualenv --python=$$PYTHON_EXE \
 		--add-comments \
 		-o i18n/en/LC_MESSAGES/validation.po src/wheezy/validation/*.py
 	for l in `ls -d i18n/*/ | cut -d / -f 2`; do \
-		echo -n "$$l => "; \
+		/bin/echo -n "$$l => "; \
 		msgfmt -v i18n/$$l/LC_MESSAGES/validation.po \
 			-o i18n/$$l/LC_MESSAGES/validation.mo; \
 	done