Installation of genshi with recent versions of setuptools fails with:
distutils.errors.DistutilsSetupError: each element of 'ext_modules' option must be an Extension instance or 2-tuple
Setuptools monkeypatches distutils, so change the ordering of imports so that setuptools is imported before distutils.
@kloczek That's precisely what this PR fixed. By import setuptools first, the setup.py now always uses the version of distutils supplied by setuptools.
Installation of genshi with recent versions of setuptools fails with:
distutils.errors.DistutilsSetupError: each element of 'ext_modules' option must be an Extension instance or 2-tuple
Setuptools monkeypatches distutils, so change the ordering of imports so that setuptools is imported before distutils.