diff options
author | David Cournapeau <cournape@gmail.com> | 2014-07-07 23:17:11 +0900 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2014-07-07 23:17:11 +0900 |
commit | d0689a3243b77b8b65e9c49eb8376a9dd190b698 (patch) | |
tree | dbd9faf8e6c127b728cfa7f4958a1eb8fe09740b /numpy/distutils/command/config.py | |
parent | 8a1496df7ad58936a8f9ff929ff629f3d38f51d8 (diff) | |
download | numpy-d0689a3243b77b8b65e9c49eb8376a9dd190b698.tar.gz |
REF: remove obsolete code.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 513d1b064..fce4fc791 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -19,8 +19,7 @@ from numpy.distutils.mingw32ccompiler import generate_manifest from numpy.distutils.command.autodist import (check_gcc_function_attribute, check_gcc_variable_attribute, check_inline, - check_compiler_gcc4, - check_compile_without_warning) + check_compiler_gcc4) from numpy.distutils.compat import get_exception LANG_EXT['f77'] = '.f' @@ -46,26 +45,6 @@ class config(old_config): return old_config.try_run(self, body, headers, include_dirs, libraries, library_dirs, lang) - def try_output_compile(self, body, headers=None, include_dirs=None, lang="c"): - """Try to compile a source file built from 'body' and 'headers'. - Return true on success, false otherwise. - """ - # XXX: this is fairly ugly. Passing the output of executed command - # would require heroic efforts so instead we use a dynamically created - # instance variable on the compiler class to pass output between - # compiler and the config command. - self.compiler.config_output = "" - self._check_compiler() - try: - self._compile(body, headers, include_dirs, lang) - status = True - except CompileError: - status = False - - log.info(status and "success!" or "failure.") - self._clean() - return status, self.compiler.config_output - def _check_compiler (self): old_config._check_compiler(self) from numpy.distutils.fcompiler import FCompiler, new_fcompiler @@ -432,10 +411,6 @@ int main () def check_gcc_variable_attribute(self, attribute): return check_gcc_variable_attribute(self, attribute) - def check_compile_without_warning(self, code): - """Returns True if the given code may be compiled without warning.""" - return check_compile_without_warning(self, code) - def get_output(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang="c", use_tee=None): |