We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbe26c commit 72df175Copy full SHA for 72df175
setup.py
@@ -84,7 +84,12 @@ def configuration(parent_package='',top_path=None):
84
85
def data_install_msgs():
86
# Check whether we have data packages
87
- from nibabel.data import datasource_or_bomber
+ try: # Allow setup.py to run without nibabel
88
+ from nibabel.data import datasource_or_bomber
89
+ except ImportError:
90
+ log.warn('Cannot check for optional data packages: see: '
91
+ 'http://nipy.org/nipy/stable/users/install_data.html')
92
+ return
93
DATA_PKGS = INFO_VARS['DATA_PKGS']
94
templates = datasource_or_bomber(DATA_PKGS['nipy-templates'])
95
example_data = datasource_or_bomber(DATA_PKGS['nipy-data'])
0 commit comments