From d49442ab865ed12b35f470c9da8530fb3d41fa46 Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Mon, 24 Jun 2024 11:31:50 -0400 Subject: [PATCH] Remove defining inline for MVSC because no longer necessary --- setup.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/setup.py b/setup.py index 1e5a41b7e..8223dafdf 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -import distutils.ccompiler import glob import os import os.path @@ -111,19 +110,6 @@ # HACK for testing # gsl_version= ['0','0'] -# MSVC: inline does not exist (not C99!); default = not necessarily actual, but will have to do for now... -# Note for the futureL could now get the actual compiler in the BuildExt class -# below -if distutils.ccompiler.get_default_compiler().lower() == "msvc": - extra_compile_args.append("-Dinline=__inline") - # only msvc compiler can be tested with initialize(), msvc is a default on windows - # check for 'msvc' not WIN32, user can use other compiler like 'mingw32', in such case compiler exists for them - try: - test_compiler = distutils.ccompiler.new_compiler() - test_compiler.initialize() # try to initialize a test compiler to see if compiler presented - except PlatformError: # this error will be raised if no compiler in the system - no_compiler = True - # To properly export GSL symbols on Windows, need to defined GSL_DLL and WIN32 if WIN32: extra_compile_args.append("-DGSL_DLL")