summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-06-21 16:10:24 -0400
committerCharles Harris <charlesr.harris@gmail.com>2015-06-21 16:10:24 -0400
commite3b2bc0b0f31482cd112660393245116ae55ecbf (patch)
treef00cdd12d96cca0a694f46d4bf0ba60dc2cf1ebd /numpy/distutils
parent95b2c24820759397695ece5f512e930e7c1712cf (diff)
parenta27f56069fb883c44dd4986d15e751162d85b621 (diff)
downloadnumpy-e3b2bc0b0f31482cd112660393245116ae55ecbf.tar.gz
Merge pull request #5990 from charris/1.10-deprecated-removal
1.10 deprecated removal
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/command/config.py55
-rw-r--r--numpy/distutils/exec_command.py6
2 files changed, 0 insertions, 61 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index 4f104b222..47dc17df3 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -35,17 +35,6 @@ 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
@@ -428,50 +417,6 @@ int main (void)
def check_gcc_variable_attribute(self, attribute):
return check_gcc_variable_attribute(self, attribute)
- def get_output(self, body, headers=None, include_dirs=None,
- libraries=None, library_dirs=None,
- lang="c", use_tee=None):
- """Try to compile, link to an executable, and run a program
- 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, ''
- try:
- grabber = GrabStdout()
- try:
- src, obj, exe = self._link(body, headers, include_dirs,
- libraries, library_dirs, lang)
- grabber.restore()
- except:
- output = grabber.data
- grabber.restore()
- raise
- exe = os.path.join('.', exe)
- exitstatus, output = exec_command(exe, execute_in='.',
- use_tee=use_tee)
- if hasattr(os, 'WEXITSTATUS'):
- exitcode = os.WEXITSTATUS(exitstatus)
- if os.WIFSIGNALED(exitstatus):
- sig = os.WTERMSIG(exitstatus)
- log.error('subprocess exited with signal %d' % (sig,))
- if sig == signal.SIGINT:
- # control-C
- raise KeyboardInterrupt
- else:
- exitcode = exitstatus
- log.info("success!")
- except (CompileError, LinkError):
- log.info("failure.")
- self._clean()
- return exitcode, output
class GrabStdout(object):
diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py
index baf81f337..f4b6f5928 100644
--- a/numpy/distutils/exec_command.py
+++ b/numpy/distutils/exec_command.py
@@ -72,12 +72,6 @@ def get_pythonexe():
assert os.path.isfile(pythonexe), '%r is not a file' % (pythonexe,)
return pythonexe
-def splitcmdline(line):
- import warnings
- warnings.warn('splitcmdline is deprecated; use shlex.split',
- DeprecationWarning)
- return shlex.split(line)
-
def find_executable(exe, path=None, _cache={}):
"""Return full path of a executable or None.