Skip to content

Commit

Permalink
ENH: display the original exception (scikit-learn#5906)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelVaroquaux authored and amueller committed Sep 14, 2016
1 parent c4552cf commit db4e244
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
# Copyright (C) 2007-2009 Cournapeau David <cournape@gmail.com>
# 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr>
# License: 3-clause BSD
import subprocess

descr = """A set of python modules for machine learning and data mining"""

import sys
import os
import shutil
from distutils.command.clean import clean as Clean
from pkg_resources import parse_version
import traceback

if sys.version_info[0] < 3:
import __builtin__ as builtins
Expand Down Expand Up @@ -155,6 +154,7 @@ def get_scipy_status():
scipy_version) >= parse_version(SCIPY_MIN_VERSION)
scipy_status['version'] = scipy_version
except ImportError:
traceback.print_exc()
scipy_status['up_to_date'] = False
scipy_status['version'] = ""
return scipy_status
Expand All @@ -174,6 +174,7 @@ def get_numpy_status():
numpy_version) >= parse_version(NUMPY_MIN_VERSION)
numpy_status['version'] = numpy_version
except ImportError:
traceback.print_exc()
numpy_status['up_to_date'] = False
numpy_status['version'] = ""
return numpy_status
Expand Down

0 comments on commit db4e244

Please sign in to comment.