[Scipy-tickets] [SciPy] #504: sandbox setup.py can't read enabled_packages.txt

SciPy scipy-tickets@scipy....
Mon Sep 24 09:16:36 CDT 2007


#504: sandbox setup.py can't read enabled_packages.txt
----------------------+-----------------------------------------------------
 Reporter:  LevGivon  |        Owner:  stefan  
     Type:  defect    |       Status:  reopened
 Priority:  normal    |    Milestone:  0.7     
Component:  Other     |      Version:          
 Severity:  normal    |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by LevGivon):

  * status:  closed => reopened
  * resolution:  worksforme =>

Comment:

 Oops; the problem was due to an extra blank line at the end of my
 extra_packages.txt file. It might be desirable to have setup.py exclude
 such lines:

 {{{
 --- scipy/sandbox/setup.py.old  2007-09-24 08:47:55.000000000 -0400
 +++ scipy/sandbox/setup.py      2007-09-24 09:30:55.000000000 -0400
 @@ -1,6 +1,8 @@
  #!/usr/bin/env python

  from os.path import join
 +import re
 +w = re.compile("^\s$")

  def configuration(parent_package='',top_path=None):
      from numpy.distutils.misc_util import Configuration
 @@ -17,6 +19,8 @@
              p = line.strip()
              if line.startswith('#'):
                  continue
 +            if w.match(line):
 +                continue
              sandbox_packages.append(p)
          sandbox_file.close()
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/504#comment:3>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list