Commit d49442a 1 parent d7b46ff commit d49442a Copy full SHA for d49442a
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
111
110
# HACK for testing
112
111
# gsl_version= ['0','0']
113
112
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
-
127
113
# To properly export GSL symbols on Windows, need to defined GSL_DLL and WIN32
128
114
if WIN32 :
129
115
extra_compile_args .append ("-DGSL_DLL" )
You can’t perform that action at this time.
0 commit comments