From d0a32a7ef685e07ee57760418fadd743d36a6fb7 Mon Sep 17 00:00:00 2001
From: Frank Smit <frank@61924.nl>
Date: Sat, 4 Feb 2012 00:54:10 +0100
Subject: [PATCH] Minor adjustment to setup.py.

---
 setup.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index c3c046c..cca1ff3 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,11 @@
+import sys
 from setuptools import Extension, setup
-from Cython.Distutils import build_ext
+
+try:
+    from Cython.Distutils import build_ext
+except ImportError:
+    print('Cython is not installed. Please install Cython first.')
+    sys.exit()
 
 
 setup(