[pypy-svn] r75868 - pypy/branch/fast-forward/lib_pypy/ctypes_config_cache
benjamin at codespeak.net
benjamin at codespeak.net
Tue Jul 6 01:18:48 CEST 2010
Author: benjamin
Date: Tue Jul 6 01:18:46 2010
New Revision: 75868
Modified:
pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/hashlib.ctc.py
pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/locale.ctc.py
pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/pyexpat.ctc.py
pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/rebuild.py
pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/resource.ctc.py
pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/syslog.ctc.py
Log:
kill stuff
Modified: pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/hashlib.ctc.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/hashlib.ctc.py (original)
+++ pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/hashlib.ctc.py Tue Jul 6 01:18:46 2010
@@ -3,7 +3,6 @@
Run this to rebuild _hashlib_cache.py.
"""
-import autopath
from ctypes import *
from ctypes_configure import configure, dumpcache
Modified: pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/locale.ctc.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/locale.ctc.py (original)
+++ pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/locale.ctc.py Tue Jul 6 01:18:46 2010
@@ -3,7 +3,6 @@
Run this to rebuild _locale_cache.py.
"""
-import autopath
from ctypes_configure.configure import (configure, ExternalCompilationInfo,
ConstantInteger, DefinedConstantInteger, SimpleType, check_eci)
from ctypes_configure.dumpcache import dumpcache
Modified: pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/pyexpat.ctc.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/pyexpat.ctc.py (original)
+++ pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/pyexpat.ctc.py Tue Jul 6 01:18:46 2010
@@ -3,7 +3,6 @@
Run this to rebuild _pyexpat_cache.py.
"""
-import autopath
import ctypes
from ctypes import c_char_p, c_int, c_void_p, c_char
from ctypes_configure import configure, dumpcache
Modified: pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/rebuild.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/rebuild.py (original)
+++ pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/rebuild.py Tue Jul 6 01:18:46 2010
@@ -1,7 +1,15 @@
#! /usr/bin/env python
# Run this script to rebuild all caches from the *.ctc.py files.
-import autopath
+# hack: we cannot directly import autopath, as we are outside the pypy
+# package. However, we pretend to be inside pypy/tool and manually run it, to
+# get the correct path
+import os.path
+this_dir = os.path.dirname(__file__)
+autopath_py = os.path.join(this_dir, '../../pypy/tool/autopath.py')
+autopath_py = os.path.abspath(autopath_py)
+execfile(autopath_py, dict(__name__='autopath', __file__=autopath_py))
+
import os, sys
import py
Modified: pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/resource.ctc.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/resource.ctc.py (original)
+++ pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/resource.ctc.py Tue Jul 6 01:18:46 2010
@@ -3,7 +3,6 @@
Run this to rebuild _resource_cache.py.
"""
-import autopath
from ctypes import sizeof
from ctypes_configure.dumpcache import dumpcache
Modified: pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/syslog.ctc.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/syslog.ctc.py (original)
+++ pypy/branch/fast-forward/lib_pypy/ctypes_config_cache/syslog.ctc.py Tue Jul 6 01:18:46 2010
@@ -3,7 +3,6 @@
Run this to rebuild _syslog_cache.py.
"""
-import autopath
from ctypes_configure.configure import (configure,
ExternalCompilationInfo, ConstantInteger, DefinedConstantInteger)
from ctypes_configure.dumpcache import dumpcache
More information about the Pypy-commit
mailing list