Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Detect if numscons is not available ASAP in top setupscons.py

  • Loading branch information...
commit ea5fb6f2eecde212e8ebb2524a2f1d0653f6dfdb 1 parent b11c4f8
David Cournapeau cournape authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 setupscons.py
8 setupscons.py
View
@@ -44,6 +44,14 @@
# a lot more robust than what was previously being used.
__builtin__.__NUMPY_SETUP__ = True
+from distutils.errors import DistutilsError
+try:
+ import numscons
+except ImportError, e:
+ msg = ["You cannot build numpy with scons without the numscons package "]
+ msg.append("(Failure was: %s)" % e)
+ raise DistutilsError('\n'.join(msg))
+
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
Please sign in to comment.
Something went wrong with that request. Please try again.