Skip to content

Commit ca275dc

Browse files
authored
Merge pull request matplotlib#20869 from QuLogic/fix-setup
Ignore errors trying to delete make_release_tree.
2 parents 54b105b + f812f7e commit ca275dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
# The setuptools version of sdist adds a setup.cfg file to the tree.
3939
# We don't want that, so we simply remove it, and it will fall back to
4040
# vanilla distutils.
41-
del setuptools.command.sdist.sdist.make_release_tree
41+
try:
42+
del setuptools.command.sdist.sdist.make_release_tree
43+
except AttributeError:
44+
pass
4245

4346
from distutils.errors import CompileError
4447
from distutils.dist import Distribution

0 commit comments

Comments
 (0)