From 87f61abda82e21fc77facd3931e0182dd564c3a0 Mon Sep 17 00:00:00 2001 From: cookedm Date: Wed, 26 Dec 2007 07:08:16 +0000 Subject: Replace numpy.distutils.exec_command.splitcmdline with shlex.split instead. It has the same problems as our old numpy.distutils.ccompiler.split_quoted. splitcmdline still exists, but uses shlex.split, and issues a DeprecationWarning This has the positive side effect of not having numpy.distutils pulled in when numpy is imported -- there was a use of splitcmdline in numpy.testing. --- numpy/distutils/interactive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/distutils/interactive.py') diff --git a/numpy/distutils/interactive.py b/numpy/distutils/interactive.py index bc741254d..2c10154e6 100644 --- a/numpy/distutils/interactive.py +++ b/numpy/distutils/interactive.py @@ -50,7 +50,7 @@ Proposed sys.argv = %s """ % (ccompiler, fcompiler, argv) -from exec_command import splitcmdline +import shlex def edit_argv(*args): argv = args[0] @@ -62,7 +62,7 @@ def edit_argv(*args): except EOFError: return if s: - argv[1:] = splitcmdline(s) + argv[1:] = shlex.split(s) return def interactive_sys_argv(argv): -- cgit v1.2.1