Skip to content

Commit d49442a

Browse files
committed
Remove defining inline for MVSC because no longer necessary
1 parent d7b46ff commit d49442a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

setup.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import distutils.ccompiler
21
import glob
32
import os
43
import os.path
@@ -111,19 +110,6 @@
111110
# HACK for testing
112111
# gsl_version= ['0','0']
113112

114-
# MSVC: inline does not exist (not C99!); default = not necessarily actual, but will have to do for now...
115-
# Note for the futureL could now get the actual compiler in the BuildExt class
116-
# below
117-
if distutils.ccompiler.get_default_compiler().lower() == "msvc":
118-
extra_compile_args.append("-Dinline=__inline")
119-
# only msvc compiler can be tested with initialize(), msvc is a default on windows
120-
# check for 'msvc' not WIN32, user can use other compiler like 'mingw32', in such case compiler exists for them
121-
try:
122-
test_compiler = distutils.ccompiler.new_compiler()
123-
test_compiler.initialize() # try to initialize a test compiler to see if compiler presented
124-
except PlatformError: # this error will be raised if no compiler in the system
125-
no_compiler = True
126-
127113
# To properly export GSL symbols on Windows, need to defined GSL_DLL and WIN32
128114
if WIN32:
129115
extra_compile_args.append("-DGSL_DLL")

0 commit comments

Comments
 (0)