Skip to content

Commit 2ad65f7

Browse files
committed
MAINT: clearer error message in setup.py
Say "libraries", not "resources", and add information where to find out more.
1 parent 0a7bc72 commit 2ad65f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,17 @@ def configuration(parent_package='', top_path=None):
470470
lapack_opt = get_info('lapack_opt')
471471

472472
if not lapack_opt:
473-
msg = 'No lapack/blas resources found.'
474473
if sys.platform == "darwin":
475-
msg = ('No lapack/blas resources found. '
474+
msg = ('No BLAS/LAPACK libraries found. '
476475
'Note: Accelerate is no longer supported.')
476+
else:
477+
msg = 'No BLAS/LAPACK libraries found.'
478+
msg += ("\n"
479+
"To build Scipy from sources, BLAS & LAPACK libraries "
480+
"need to be installed.\n"
481+
"See site.cfg.example in the Scipy source directory and\n"
482+
"https://docs.scipy.org/doc/scipy/reference/building/index.html "
483+
"for details.")
477484
raise NotFoundError(msg)
478485

479486
config = Configuration(None, parent_package, top_path)

0 commit comments

Comments
 (0)