[Numpy-discussion] numpy distutils patch
Jarrod Millman
millman at berkeley.edu
Mon Oct 29 06:17:52 EDT 2007
Hey,
I was looking at numpy/distutils/ccompiler.py and noticed that it has
a fix for distutils.util.split_quoted.
Here is the relevant code from split_quoted in numpy.distutils.ccompiler:
-----------------------------------
def split_quoted(s):
<snip>
if _has_white_re.search(s[beg+1:end-1]):
s = s[:beg] + s[beg+1:end-1] + s[end:]
pos = m.end() - 2
else:
# Keeping quotes when a quoted word does not contain
# white-space. XXX: send a patch to distutils
pos = m.end()
<snip>
-----------------------------------
Here is the relevant code from split_quoted in distutils.util:
-----------------------------------
def split_quoted(s):
<snip>
s = s[:beg] + s[beg+1:end-1] + s[end:]
pos = m.end() - 2
<snip>
-----------------------------------
Does anyone know if a patch was ever submitted upstream? If not, is
there any reason that a patch shouldn't be submitted?
Thanks,
--
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
More information about the NumPy-Discussion
mailing list