edgewall / genshi

Python toolkit for generation of output for the web
http://genshi.edgewall.org
Other
86 stars 35 forks source link

Fix installation with setuptools >= 60 #68

Closed ginggs closed 1 year ago

ginggs commented 1 year ago

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 commented 10 months ago

distutils is deprecated and seuptools should be used.

hodgestar commented 10 months ago

@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.