@@ -291,6 +291,18 @@ def check_numscons(minver):
291291class scons (old_build_ext ):
292292 # XXX: add an option to the scons command for configuration (auto/force/cache).
293293 description = "Scons builder"
294+
295+ library_options = [
296+ ('with-perflib=' , None ,
297+ 'Specify which performance library to use for BLAS/LAPACK/etc...' \
298+ 'Examples: mkl/atlas/sunper/accelerate' ),
299+ ('with-mkl-lib=' , None , 'TODO' ),
300+ ('with-mkl-include=' , None , 'TODO' ),
301+ ('with-mkl-libraries=' , None , 'TODO' ),
302+ ('with-atlas-lib=' , None , 'TODO' ),
303+ ('with-atlas-include=' , None , 'TODO' ),
304+ ('with-atlas-libraries=' , None , 'TODO' )
305+ ]
294306 user_options = [
295307 ('jobs=' , 'j' , "specify number of worker threads when executing" \
296308 "scons" ),
@@ -310,7 +322,7 @@ class scons(old_build_ext):
310322 ('compiler=' , None , "specify the C compiler type" ),
311323 ('cxxcompiler=' , None ,
312324 "specify the C++ compiler type (same as C by default)" ),
313- ]
325+ ] + library_options
314326
315327 def initialize_options (self ):
316328 old_build_ext .initialize_options (self )
@@ -341,6 +353,15 @@ def initialize_options(self):
341353 # Only critical things
342354 self .log_level = 50
343355
356+ # library options
357+ self .with_perflib = []
358+ self .with_mkl_lib = []
359+ self .with_mkl_include = []
360+ self .with_mkl_libraries = []
361+ self .with_atlas_lib = []
362+ self .with_atlas_include = []
363+ self .with_atlas_libraries = []
364+
344365 def _init_ccompiler (self , compiler_type ):
345366 # XXX: The logic to bypass distutils is ... not so logic.
346367 if compiler_type == 'msvc' :
0 commit comments