Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation with setuptools >= 60 #68

Merged
merged 1 commit into from
Oct 27, 2022
Merged

Fix installation with setuptools >= 60 #68

merged 1 commit into from
Oct 27, 2022

Conversation

ginggs
Copy link
Contributor

@ginggs ginggs commented Oct 27, 2022

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.

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.
@hodgestar hodgestar merged commit e161256 into edgewall:master Oct 27, 2022
@ginggs ginggs deleted the patch-1 branch November 5, 2022 15:32
@kloczek
Copy link

kloczek commented Nov 10, 2023

distutils is deprecated and seuptools should be used.

@hodgestar
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants