Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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"""
Expand Down Expand Up @@ -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):

Expand Down Expand Up @@ -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)

Expand All @@ -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"]
Expand Down