diff options
author | David Cournapeau <cournape@gmail.com> | 2008-11-16 13:02:09 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-11-16 13:02:09 +0000 |
commit | 2401df249825a1a4c07e162d078091cf5edcab40 (patch) | |
tree | a30b6981f72e2c4664961779b6f928c8bc07ec11 /numpy/distutils/command/config.py | |
parent | f9e17289abd34cc65efd25c99931eed6072e7cbe (diff) | |
parent | 573adec670c1bb94d3134b927195caa139b9e35a (diff) | |
download | numpy-2401df249825a1a4c07e162d078091cf5edcab40.tar.gz |
Merged revisions 6042-6050 via svnmerge from
http://svn.scipy.org/svn/numpy/trunk
........
r6043 | jarrod.millman | 2008-11-16 18:14:01 +0900 (Sun, 16 Nov 2008) | 2 lines
removing some quotes
........
r6044 | jarrod.millman | 2008-11-16 18:15:59 +0900 (Sun, 16 Nov 2008) | 2 lines
adding back a few quotes
........
r6050 | cdavid | 2008-11-16 21:30:17 +0900 (Sun, 16 Nov 2008) | 1 line
Add deprecation warning for get_output and try_run: we should not use it anymore.
........
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 5c8da2d28..0036c5543 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -4,6 +4,8 @@ # Pearu Peterson import os, signal +import warnings + from distutils.command.config import config as old_config from distutils.command.config import LANG_EXT from distutils import log @@ -22,6 +24,17 @@ class config(old_config): self.fcompiler = None old_config.initialize_options(self) + def try_run(self, body, headers=None, include_dirs=None, + libraries=None, library_dirs=None, lang="c"): + warnings.warn("\n+++++++++++++++++++++++++++++++++++++++++++++++++\n" \ + "Usage of try_run is deprecated: please do not \n" \ + "use it anymore, and avoid configuration checks \n" \ + "involving running executable on the target machine.\n" \ + "+++++++++++++++++++++++++++++++++++++++++++++++++\n", + DeprecationWarning) + return old_config.try_run(self, body, headers, include_dirs, libraries, + library_dirs, lang) + def _check_compiler (self): old_config._check_compiler(self) from numpy.distutils.fcompiler import FCompiler, new_fcompiler @@ -215,6 +228,12 @@ int main() built from 'body' and 'headers'. Returns the exit status code of the program and its output. """ + warnings.warn("\n+++++++++++++++++++++++++++++++++++++++++++++++++\n" \ + "Usage of get_output is deprecated: please do not \n" \ + "use it anymore, and avoid configuration checks \n" \ + "involving running executable on the target machine.\n" \ + "+++++++++++++++++++++++++++++++++++++++++++++++++\n", + DeprecationWarning) from distutils.ccompiler import CompileError, LinkError self._check_compiler() exitcode, output = 255, '' |