From 2c0692517b50086cda1f584426c5165a6639c14d Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 6 Mar 2019 23:13:44 -0500 Subject: Try to enforce taking setup() from setuptools package --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'setup.py') 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 -- cgit v1.2.3