pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/41098: lang/python25 installs broken cElementTree module



The following reply was made to PR pkg/41098; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/41098: lang/python25 installs broken cElementTree module
Date: Fri, 25 Sep 2009 21:30:02 +0900

 On Tue, 31 Mar 2009 03:45:02 +0900, Hasso Tepper <hasso%estpak.ee@localhost> 
wrote:
 
 >  Thomas Klausner wrote:
 >  >  Does this incur an expat dependency?
 > Builds and works fine without external expat dependency. Working with
 >  internal pyexpat?
 
 In setup.py (for python26, almost same as python25's one):
 
          # Fredrik Lundh's cElementTree module.  Note that this also
          # uses expat (via the CAPI hook in pyexpat).
 
          if os.path.isfile(os.path.join(srcdir, 'Modules', '_elementtree.c')):
              define_macros.append(('USE_PYEXPAT_CAPI', None))
              exts.append(Extension('_elementtree',
                                    define_macros = define_macros,
                                    include_dirs = [expatinc],
                                    sources = ['_elementtree.c'],
                                    ))
          else:
              missing.append('_elementtree')
 
 So it will be compiled as used with pyexpat, I think.
 Without textproc/py-expat, is it still works fine for you?
 
 I've just created wip/py-cElementTree, it may be another solution.
 


Home | Main Index | Thread Index | Old Index