From ce2a824ec9b9fdfae6b11aa751e35d2fd5a6aaf8 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 12 May 2024 15:31:35 +0200 Subject: [PATCH] cosmetic: blacken setup.py --- setup.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b725e9fc7..410c6153b 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ from setuptools.command.sdist import sdist try: from Cython.Build import cythonize + cythonize_import_error_msg = None except ImportError as exc: # either there is no Cython installed or there is some issue with it. @@ -85,9 +86,12 @@ else: cython_c_files = [fn.replace(".pyx", ".c") for fn in cython_sources] if not on_rtd and not all(os.path.exists(path) for path in cython_c_files): - raise ImportError("The GIT version of Borg needs a working Cython. " + - "Install or fix Cython or use a released borg version. " + - "Importing cythonize failed with: " + cythonize_import_error_msg) + raise ImportError( + "The GIT version of Borg needs a working Cython. " + + "Install or fix Cython or use a released borg version. " + + "Importing cythonize failed with: " + + cythonize_import_error_msg + ) cmdclass = {"build_ext": build_ext, "sdist": Sdist}