Skip to content

Commit

Permalink
setup.py: Import distutils directly instead of through setuptools
Browse files Browse the repository at this point in the history
In setuptools 65.6.0 the vendored distutils package changed to relative
imports. Importing `setuptools._distutils` would import an unpatched
version of distutils, while importing `distutils` directly imports a
monkeypatched version that works.

Reported upstream at pypa/setuptools#3743 and
the problem was investigated by Anderson Bravalheri.

Closes: alan-turing-institute#77
  • Loading branch information
mweinelt committed Jan 6, 2023
1 parent 3be65c3 commit 0614fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -8,7 +8,7 @@
from setuptools import Extension
from setuptools import find_packages
from setuptools import setup
from setuptools._distutils.core import Command
from distutils.core import Command

# Package meta-data.
AUTHOR = "Gertjan van den Burg"
Expand Down

0 comments on commit 0614fe1

Please sign in to comment.