diff options
| author | Allan Haldane <allan.haldane@gmail.com> | 2018-05-13 20:50:50 -0400 |
|---|---|---|
| committer | Allan Haldane <allan.haldane@gmail.com> | 2018-06-01 14:18:41 -0400 |
| commit | 9295adca4db3d3190530ae222ac1a29bd7447621 (patch) | |
| tree | cd31ff427cda28ee3c7bf752820ad70a12033aea /numpy/distutils/command | |
| parent | 342609be2f6a9a3d2304d323a68b12795545fc1c (diff) | |
| download | numpy-9295adca4db3d3190530ae222ac1a29bd7447621.tar.gz | |
BLD: cleanup _configtest.o.d during build
Diffstat (limited to 'numpy/distutils/command')
| -rw-r--r-- | numpy/distutils/command/config.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 66d4ed58d..47bc496cf 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -101,8 +101,12 @@ Original exception was: %s, and the Compiler class was %s return ret def _compile (self, body, headers, include_dirs, lang): - return self._wrap_method(old_config._compile, lang, - (body, headers, include_dirs, lang)) + src, obj = self._wrap_method(old_config._compile, lang, + (body, headers, include_dirs, lang)) + # _compile in unixcompiler.py sometimes creates .d dependency files. + # Clean them up. + self.temp_files.append(obj + '.d') + return src, obj def _link (self, body, headers, include_dirs, |
