Commit 8b9fa15 1 parent 67356e0 commit 8b9fa15 Copy full SHA for 8b9fa15
File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 1
- import distutils .ccompiler
2
1
import glob
3
2
import os
4
3
import os .path
127
126
# HACK for testing
128
127
# gsl_version= ['0','0']
129
128
130
- # MSVC: inline does not exist (not C99!); default = not necessarily actual, but will have to do for now...
131
- # Note for the futureL could now get the actual compiler in the BuildExt class
132
- # below
133
- if distutils .ccompiler .get_default_compiler ().lower () == "msvc" :
134
- extra_compile_args .append ("-Dinline=__inline" )
135
- # only msvc compiler can be tested with initialize(), msvc is a default on windows
136
- # check for 'msvc' not WIN32, user can use other compiler like 'mingw32', in such case compiler exists for them
137
- try :
138
- test_compiler = distutils .ccompiler .new_compiler ()
139
- test_compiler .initialize () # try to initialize a test compiler to see if compiler presented
140
- except PlatformError : # this error will be raised if no compiler in the system
141
- no_compiler = True
142
-
143
129
# To properly export GSL symbols on Windows, need to defined GSL_DLL and WIN32
144
130
if WIN32 :
145
131
extra_compile_args .append ("-DGSL_DLL" )
You can’t perform that action at this time.
0 commit comments