From f812f7eaecc74454be9d3b2df4a8fda3fcac5014 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 20 Aug 2021 22:11:33 -0400 Subject: [PATCH] Ignore errors trying to delete make_release_tree. Which apparently happens in Fedora's automated build requirement generator. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c72e13623c2d..36ca62a880f4 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,10 @@ # The setuptools version of sdist adds a setup.cfg file to the tree. # We don't want that, so we simply remove it, and it will fall back to # vanilla distutils. -del setuptools.command.sdist.sdist.make_release_tree +try: + del setuptools.command.sdist.sdist.make_release_tree +except AttributeError: + pass from distutils.errors import CompileError from distutils.dist import Distribution