diff --git a/setup.py b/setup.py index c8f4649..36ff950 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,15 @@ @author: shroffk ''' -from distutils.core import setup +'''It is recomended to use setuptools over distutils if installed +https://packaging.python.org/guides/tool-recommendations/ +''' +try: + # If possible, use setuptools.Extension so we get setup_requires + from setuptools import Extension, setup +except ImportError: + from distutils.core import setup + from distutils.extension import Extension setup(name='pyOlog',