Skip to content

Commit e26b40d

Browse files
author
Thomas Ballinger
committed
Added custom messages for dicom dependency check
Fixes issue 25: update warning on missing dicom
1 parent b29130b commit e26b40d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838

3939
# Do dependency checking
4040
package_check('numpy', NUMPY_MIN_VERSION)
41-
package_check('dicom', PYDICOM_MIN_VERSION, optional=True)
41+
custom_pydicom_messages = {'missing opt': 'Missing optional package "%s"'
42+
' provided by package "pydicom"'
43+
}
44+
package_check('dicom',
45+
PYDICOM_MIN_VERSION,
46+
optional=True,
47+
messages = custom_pydicom_messages)
4248
extra_setuptools_args = {}
4349
if 'setuptools' in sys.modules:
4450
extra_setuptools_args = dict(

0 commit comments

Comments
 (0)