From d256d07679a0a4b13d9064794c4fd2a6143986f2 Mon Sep 17 00:00:00 2001
From: Bas Nijholt <basnijholt@gmail.com>
Date: Wed, 3 May 2017 14:17:59 +0200
Subject: [PATCH] exit setup.py if BLAS/LAPACK are not found

---
 setup.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 99808397..9667ea69 100755
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ def configure_extensions(exts, aliases=(), build_summary=None):
             continue
         l, _, config_file = opt.partition('=')
         if l != config_file_option or not config_file:
-            print('error: Expecting {}=PATH'.format(config_file_option),
+            print('Error: Expecting {}=PATH'.format(config_file_option),
                   file=sys.stderr)
             sys.exit(1)
         sys.argv.pop(i)
@@ -426,7 +426,10 @@ def search_lapack():
         found_libs = search_libs(libs)
         if found_libs:
             return found_libs
-    return []
+
+    print('Error: BLAS/LAPACK are required but were not found.',
+          file=sys.stderr)
+    sys.exit(1)
 
 
 def configure_special_extensions(exts, build_summary):
-- 
GitLab