diff options
author | cookedm <cookedm@localhost> | 2007-12-26 07:08:16 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-12-26 07:08:16 +0000 |
commit | 87f61abda82e21fc77facd3931e0182dd564c3a0 (patch) | |
tree | 2e21b844c860a76a98cf4badd0e2761051bb10f0 /numpy/distutils/command/build_src.py | |
parent | 2a726d25c8404aa21bb9ab5a6f9af82b3ccf4a47 (diff) | |
download | numpy-87f61abda82e21fc77facd3931e0182dd564c3a0.tar.gz |
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.
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r-- | numpy/distutils/command/build_src.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py index 57b10ba54..f0d0a3b57 100644 --- a/numpy/distutils/command/build_src.py +++ b/numpy/distutils/command/build_src.py @@ -4,6 +4,7 @@ import os import re import sys +import shlex from distutils.command import build_ext from distutils.dep_util import newer_group, newer @@ -24,7 +25,6 @@ from numpy.distutils.misc_util import fortran_ext_match, \ appendpath, is_string, is_sequence from numpy.distutils.from_template import process_file as process_f_file from numpy.distutils.conv_template import process_file as process_c_file -from numpy.distutils.exec_command import splitcmdline class build_src(build_ext.build_ext): @@ -94,7 +94,7 @@ class build_src(build_ext.build_ext): if self.f2py_opts is None: self.f2py_opts = [] else: - self.f2py_opts = splitcmdline(self.f2py_opts) + self.f2py_opts = shlex.split(self.f2py_opts) if self.swigflags: if self.swig_opts: @@ -106,7 +106,7 @@ class build_src(build_ext.build_ext): if self.swig_opts is None: self.swig_opts = [] else: - self.swig_opts = splitcmdline(self.swig_opts) + self.swig_opts = shlex.split(self.swig_opts) # use options from build_ext command build_ext = self.get_finalized_command('build_ext') |