From 229b8c39742ce908ab63acd328b0a58dfc7083ec Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 7 May 2017 18:36:35 +0200 Subject: [PATCH] Tidy up --- setup.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 3203e38a7..a112a6e80 100755 --- a/setup.py +++ b/setup.py @@ -67,15 +67,6 @@ LINK_OPTIONS = { # I don't understand this very well yet. See Issue #267 # Fingers crossed! -#if os.environ.get('USE_OPENMP') == '1': -# compile_options['msvc'].append('/openmp') -# -# -#if not sys.platform.startswith('darwin'): -# compile_options['other'].append('-fopenmp') -# link_options['other'].append('-fopenmp') -# - USE_OPENMP_DEFAULT = '1' if sys.platform != 'darwin' else None if os.environ.get('USE_OPENMP', USE_OPENMP_DEFAULT) == '1': if sys.platform == 'darwin': @@ -91,6 +82,7 @@ if os.environ.get('USE_OPENMP', USE_OPENMP_DEFAULT) == '1': COMPILE_OPTIONS['other'].append('-fopenmp') LINK_OPTIONS['other'].append('-fopenmp') + # By subclassing build_extensions we have the actual compiler that will be used which is really known only after finalize_options # http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used class build_ext_options: