diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 23:34:12 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 23:34:12 +0000 |
commit | ff01b26fd14c55ff93210190e9bcc42711c5eee2 (patch) | |
tree | 8cea61ce2908c40e083f1614bd97f0fbad36ef47 /scipy/distutils/misc_util.py | |
parent | b48b35f199ec5d54b2ce3334d5ffa96f17fe1a60 (diff) | |
download | numpy-ff01b26fd14c55ff93210190e9bcc42711c5eee2.tar.gz |
Added EnsureArray to C-API and used it to clean up some method calls
Diffstat (limited to 'scipy/distutils/misc_util.py')
-rw-r--r-- | scipy/distutils/misc_util.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scipy/distutils/misc_util.py b/scipy/distutils/misc_util.py index 72b262d38..b35d58f5d 100644 --- a/scipy/distutils/misc_util.py +++ b/scipy/distutils/misc_util.py @@ -389,9 +389,10 @@ class Configuration: def add_include_dirs(self,*paths): self.include_dirs.extend(self._fix_paths(paths)) - def add_headers(self,*paths): + def add_headers(self,*paths,**kwds): + name = kwds.get('name') or self.name paths = self._fix_paths(paths) - self.headers.extend([(self.name,p) for p in paths]) + self.headers.extend([(name,p) for p in paths]) def _fix_paths(self,paths): new_paths = [] |