Only import setup from distutils.core if setuptools is not available.