aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-06 23:13:44 -0500
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-06 23:13:44 -0500
commit2c0692517b50086cda1f584426c5165a6639c14d (patch)
treef980bd533dfefbbe21c857e9f96aba9e726a5c58 /setup.py
parentbugfix for gamma in kernel (diff)
downloadpygensvm-2c0692517b50086cda1f584426c5165a6639c14d.tar.gz
pygensvm-2c0692517b50086cda1f584426c5165a6639c14d.zip
Try to enforce taking setup() from setuptools package
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index e82cfdb..b3bddd8 100644
--- a/setup.py
+++ b/setup.py
@@ -25,6 +25,16 @@ if USE_CYTHON:
else:
raise
+# Try to load setuptools, so that NumPy's distutils module that we use to
+# provide the setup() function below comes from the setuptools package. If it
+# fails, it'll use distutils' version, which doesn't support installing
+# dependencies.
+try:
+ import setuptools
+except ImportError:
+ print("Warning: setuptools not found. You may have to install GenSVM's dependencies manually.")
+
+
def _skl_get_blas_info():
"""Copyright notice for this function