[Numpy-tickets] [NumPy] #619: remove split_quoted in numpy.distutils.ccompiler

NumPy numpy-tickets@scipy....
Tue Nov 20 23:57:18 CST 2007


#619: remove split_quoted in numpy.distutils.ccompiler
-----------------------------+----------------------------------------------
 Reporter:  jarrod.millman   |       Owner:  jarrod.millman
     Type:  task             |      Status:  new           
 Priority:  normal           |   Milestone:  1.0.5         
Component:  numpy.distutils  |     Version:  devel         
 Severity:  normal           |    Keywords:                
-----------------------------+----------------------------------------------
 We have our own version of {{{distutils.util.split_quoted()}}} in
 {{{numpy/distutils/ccompiler.py}}}, which just just makes a minor change
 to distutils default behavior.

 Here is the relevant code from {{{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 {{{distutils.util}}}:
 {{{
 def split_quoted(s):

 <snip>

            s = s[:beg] + s[beg+1:end-1] + s[end:]
            pos = m.end() - 2

 <snip>
 }}}

 If this isn't necessary we should remove our version of
 {{{split_quoted}}}.  If there is a reason for this check, we need to patch
 {{{split_quoted}}} upstream and remove our version.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/619>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list