8000 Ignore errors trying to delete make_release_tree. · matplotlib/matplotlib@f812f7e · GitHub
[go: up one dir, main page]

Skip to content

Commit f812f7e

Browse files
committed
Ignore errors trying to delete make_release_tree.
Which apparently happens in Fedora's automated build requirement generator.
1 parent 54b105b commit f812f7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
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)
0