From 66a872a9d6a6cfdaed80f78bc6702beb198be993 Mon Sep 17 00:00:00 2001 From: Laura Mendoza Date: Tue, 26 Nov 2019 17:24:16 +0100 Subject: [PATCH] [PEP8] compliances 1 --- setup.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index 8dd25cc59..23e3c2e42 100644 --- a/setup.py +++ b/setup.py @@ -23,14 +23,13 @@ from distutils.command.clean import clean as Clean - -# == Checking platform ========================================================= +# == Checking platform ======================================================== is_platform_windows = False if platform.system() == "Windows": is_platform_windows = True -# === Setting clean command ==================================================== +# === Setting clean command =================================================== logging.basicConfig(level=logging.INFO) logger = logging.getLogger("tofu.setup") @@ -97,10 +96,10 @@ def run(self): logger.info("removing '%s'", path) except OSError: pass -# ============================================================================== +# ============================================================================= -# ============================================================================== +# ============================================================================= # Check if openmp available # see http://openmp.org/wp/openmp-compilers/ omp_test = r""" @@ -139,10 +138,10 @@ def check_for_openmp(cc_var): openmp_installed = False else: openmp_installed = not check_for_openmp("cc") -# ============================================================================== +# ============================================================================= -# == Getting tofu version ====================================================== +# == Getting tofu version ===================================================== _HERE = os.path.abspath(os.path.dirname(__file__)) def get_version_tofu(path=_HERE): @@ -184,9 +183,9 @@ def get_version_tofu(path=_HERE): print("") print("Version for setup.py : ", version_tofu) print("") -# ============================================================================== +# ============================================================================= -# ============================================================================== +# ============================================================================= # Get the long description from the README file # Get the readme file whatever its extension (md vs rst) @@ -203,10 +202,10 @@ def get_version_tofu(path=_HERE): long_description_content_type = "text/markdown" else: long_description_content_type = "text/x-rst" -# ============================================================================== +# ============================================================================= -# ============================================================================== +# ============================================================================= # Compiling files if openmp_installed: extra_compile_args = ["-O3", "-Wall", "-fopenmp", "-fno-wrapv"]