summaryrefslogtreecommitdiff
path: root/numpy/linalg/bscript
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/linalg/bscript')
-rw-r--r--numpy/linalg/bscript14
1 files changed, 2 insertions, 12 deletions
diff --git a/numpy/linalg/bscript b/numpy/linalg/bscript
index ade32a932..828e226e8 100644
--- a/numpy/linalg/bscript
+++ b/numpy/linalg/bscript
@@ -7,16 +7,6 @@ from bento.commands.hooks \
@pre_build()
def pbuild(context):
bld = context.waf_context
- old_path = bld.path
- bld.path = old_path.find_dir(context.local_node.path_from(context.top_node))
- assert bld.path.__class__ == old_path.__class__
-
- # FIXME: there has to be a better way to refer to numpy/core include
- includes = [
- os.path.join(bld.srcnode.path_from(bld.path), "numpy/core"),
- os.path.join(bld.srcnode.path_from(bld.path), "numpy/core/include"),
- os.path.join(bld.srcnode.path_from(bld.path), "numpy/core/include/numpy"),
- os.path.join(bld.srcnode.path_from(bld.path), "numpy/core/src/private")]
def build_lapack_lite(bld, extension):
kw = {}
@@ -26,10 +16,10 @@ def pbuild(context):
extension.sources.pop(extension.sources.index(s))
kw["uselib"] = "LAPACK"
+ includes = ["../core/include", "../core/include/numpy", "../core",
+ "../core/src/private"]
bld(features="c cshlib pyext",
target=extension.name,
source=extension.sources,
includes=includes, **kw)
context.register_builder("lapack_lite", build_lapack_lite)
-
- bld.path = old_path