[pypy-svn] r48907 - in pypy/dist/pypy/rpython: . module
fijal at codespeak.net
fijal at codespeak.net
Wed Nov 21 16:32:21 CET 2007
Author: fijal
Date: Wed Nov 21 16:32:20 2007
New Revision: 48907
Modified:
pypy/dist/pypy/rpython/extfunc.py
pypy/dist/pypy/rpython/module/ll_strtod.py
Log:
Get rid of a hack, not needed any more
Modified: pypy/dist/pypy/rpython/extfunc.py
==============================================================================
--- pypy/dist/pypy/rpython/extfunc.py (original)
+++ pypy/dist/pypy/rpython/extfunc.py Wed Nov 21 16:32:20 2007
@@ -92,7 +92,8 @@
class BaseLazyRegistering(object):
__metaclass__ = LazyRegisteringMeta
- __ATTRIBUTES = ['includes', 'include_dirs', 'libraries', 'library_dirs']
+ __ATTRIBUTES = ['includes', 'include_dirs', 'libraries', 'library_dirs',
+ 'sources']
def configure(self, CConfig):
classes_seen = self.__dict__.setdefault('__classes_seen', {})
Modified: pypy/dist/pypy/rpython/module/ll_strtod.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_strtod.py (original)
+++ pypy/dist/pypy/rpython/module/ll_strtod.py Wed Nov 21 16:32:20 2007
@@ -10,20 +10,10 @@
class CConfig:
_includes_ = ['src/ll_strtod.h']
+ _sources_ = ['#include <src/ll_strtod.h>']
class RegisterStrtod(BaseLazyRegistering):
def __init__(self):
- # HACK HACK HACK
- # we need to have some sane way of doing stuff below
- # problem: we don't have a way to call things in our header files
- from pypy.tool.udir import udir
- c_file = udir.join('test_strtod.c')
- c_file.write(py.code.Source("""
- #include <src/ll_strtod.h>
- """))
- cache_c_module([c_file], '_ll_strtod')
- self._libraries_ = [str(py.path.local(pypydir).join('_cache',
- '_ll_strtod.so'))]
self.configure(CConfig)
@registering(rarithmetic.formatd)
More information about the Pypy-commit
mailing list