From 0a9ce6f7f4b15a49494fb76ccef2370962591418 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 9 May 2017 11:48:15 +0200
Subject: [PATCH] Fix #69 "bob.io.image is a test dependency but it is
 imported"

---
 bob/bio/base/script/preprocess.py | 5 ++++-
 test-requirements.txt             | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/bob/bio/base/script/preprocess.py b/bob/bio/base/script/preprocess.py
index ccc83704..7aef2986 100644
--- a/bob/bio/base/script/preprocess.py
+++ b/bob/bio/base/script/preprocess.py
@@ -12,7 +12,10 @@ import numpy
 
 import bob.core
 import bob.io.base
-import bob.io.image
+try:
+  import bob.io.image
+except ImportError:
+  pass
 
 
 def command_line_arguments(command_line_parameters):
diff --git a/test-requirements.txt b/test-requirements.txt
index 89e63d6a..ae003ee3 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -2,3 +2,4 @@ bob.db.atnt
 bob.io.image
 matplotlib
 gridtk
+nose
-- 
GitLab