Browse files

ENH: add npymath configuration.

  • Loading branch information...
1 parent a300857 commit d2f22a7e936aa7a8e70e9a8a6165dfb319e5833c @cournape cournape committed Jun 3, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 bscript
View
5 bscript
@@ -3,7 +3,7 @@ import os.path as op
from numpy.distutils.misc_util \
import \
- get_numpy_include_dirs
+ get_numpy_include_dirs, get_pkg_info
from numpy.distutils.conv_template \
import \
process_str as process_c_str
@@ -190,6 +190,9 @@ def post_configure(context):
if not (conf.env.HAS_FBLAS and conf.env.HAS_FLAPACK):
raise waflib.Errors.ConfigurationError("You need blas and lapack")
+ npymath_info = get_pkg_info("npymath")
+ conf.parse_flags(npymath_info.cflags() + " " + npymath_info.libs(), "NPYMATH")
+
@hooks.pre_build()
def pre_build(context):
bld = context.waf_context

0 comments on commit d2f22a7

Please sign in to comment.