diff --git a/setup.py b/setup.py index 74e46a5..ae4501b 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ def export_symbols(*path): EXTERNAL_LIBS = False # adds --with-system-libs command-line option if possible def add_features(): - if 'setuptools' not in sys.modules: + if 'setuptools' not in sys.modules or not hasattr(setuptools, 'Feature'): return {} class ExternalLibFeature(setuptools.Feature):