summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_clib.py
diff options
context:
space:
mode:
authorIan Henriksen <insertinterestingnamehere@gmail.com>2015-07-07 20:47:51 -0600
committerIan Henriksen <insertinterestingnamehere@gmail.com>2015-07-13 14:04:37 -0600
commita8e9a05b52c5b13c1a5a6709e1e2bf7522cd1654 (patch)
tree52ec838857cae80445d164daa7d601e5c374148d /numpy/distutils/command/build_clib.py
parentb1a7d4c1d0e18913081ba2c1f8508da57582727e (diff)
downloadnumpy-a8e9a05b52c5b13c1a5a6709e1e2bf7522cd1654.tar.gz
BUG: Allow libraries to be used as dependencies for other libraries when
compiling with numpy.distutils. For example, something like this will now work as a configuration function: def configuration(): config = Configuration() config.add_library('mylib1', sources=['mylib1.f']) config.add_library('mylib2', sources=['mylib2.f'], libraries=['mylib1']) config.add_extension('pymodule', sources=['pymodule.c'], libraries=['mylib2']) return config Arbitrary handling of dependencies between libraries is still not supported, but this should make some basic cases work properly.
Diffstat (limited to 'numpy/distutils/command/build_clib.py')
-rw-r--r--numpy/distutils/command/build_clib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py
index 6e65a3bfb..46b1e7f65 100644
--- a/numpy/distutils/command/build_clib.py
+++ b/numpy/distutils/command/build_clib.py
@@ -290,6 +290,6 @@ class build_clib(old_build_clib):
clib_libraries = build_info.get('libraries', [])
for lname, binfo in libraries:
if lname in clib_libraries:
- clib_libraries.extend(binfo[1].get('libraries', []))
+ clib_libraries.extend(binfo.get('libraries', []))
if clib_libraries:
build_info['libraries'] = clib_libraries