summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/scons.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-09-14 09:44:29 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-09-14 09:44:29 +0000
commit5ccae0395b4e01704004b2061564fb2fb164d74b (patch)
tree17606634b6167cf92c19d3a8f39ceb750d4885ee /numpy/distutils/command/scons.py
parenta7be8bf0cf5b241d4e6810460e37e9b4612e5cf4 (diff)
downloadnumpy-5ccae0395b4e01704004b2061564fb2fb164d74b.tar.gz
Start adding library options for scons option.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r--numpy/distutils/command/scons.py23
1 files changed, 22 insertions, 1 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index 3a1ca48c6..92720fd58 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -291,6 +291,18 @@ def check_numscons(minver):
class scons(old_build_ext):
# XXX: add an option to the scons command for configuration (auto/force/cache).
description = "Scons builder"
+
+ library_options = [
+ ('with-perflib=', None,
+ 'Specify which performance library to use for BLAS/LAPACK/etc...' \
+ 'Examples: mkl/atlas/sunper/accelerate'),
+ ('with-mkl-lib=', None, 'TODO'),
+ ('with-mkl-include=', None, 'TODO'),
+ ('with-mkl-libraries=', None, 'TODO'),
+ ('with-atlas-lib=', None, 'TODO'),
+ ('with-atlas-include=', None, 'TODO'),
+ ('with-atlas-libraries=', None, 'TODO')
+ ]
user_options = [
('jobs=', 'j', "specify number of worker threads when executing" \
"scons"),
@@ -310,7 +322,7 @@ class scons(old_build_ext):
('compiler=', None, "specify the C compiler type"),
('cxxcompiler=', None,
"specify the C++ compiler type (same as C by default)"),
- ]
+ ] + library_options
def initialize_options(self):
old_build_ext.initialize_options(self)
@@ -341,6 +353,15 @@ class scons(old_build_ext):
# Only critical things
self.log_level = 50
+ # library options
+ self.with_perflib = []
+ self.with_mkl_lib = []
+ self.with_mkl_include = []
+ self.with_mkl_libraries = []
+ self.with_atlas_lib = []
+ self.with_atlas_include = []
+ self.with_atlas_libraries = []
+
def _init_ccompiler(self, compiler_type):
# XXX: The logic to bypass distutils is ... not so logic.
if compiler_type == 'msvc':