[mlpack-svn] r15382 - mlpack/conf/jenkins-conf/benchmark

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jul 2 12:21:13 EDT 2013


Author: rcurtin
Date: Tue Jul  2 12:21:12 2013
New Revision: 15382

Log:
Check for python-yaml.


Modified:
   mlpack/conf/jenkins-conf/benchmark/Makefile

Modified: mlpack/conf/jenkins-conf/benchmark/Makefile
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/Makefile	(original)
+++ mlpack/conf/jenkins-conf/benchmark/Makefile	Tue Jul  2 12:21:12 2013
@@ -1,16 +1,23 @@
 PYTHON_BIN := $(shell which python)
 PYTHON_VERSION := $(shell expr `$(PYTHON_BIN) -c 'import sys; print sys.version[:3]'` \>= 2.7)
+YAML_INSTALLED := $(shell $(PYTHON_BIN) -c 'import sys, yaml;' 2>&1)
 
 CONFIG := config.yaml
 BENCHMARKDDIR := benchmark
 
 ifeq ($(PYTHON_VERSION), 0)
-  $(error Python version 2.7 required which was not found.)
+  $(error Python version 2.7 required which was not found)
+endif
+
+# This is empty unless there was a problem.
+ifdef YAML_INSTALLED
+  $(error Python 'yaml' module was not found)
 endif
 
 .PHONY: help test run memory
 
 help:
+	@echo "$(YAML_INSTALLED)"
 	@echo "Usage: make [option] [CONFIG=..]"
 	@echo "options:"
 	@echo "  help               Show this info."
@@ -30,4 +37,4 @@
 
 memory:
 	$(PYTHON_BIN) $(BENCHMARKDDIR)/memory_benchmark.py -c $(CONFIG)
-	
\ No newline at end of file
+



More information about the mlpack-svn mailing list