diff options
Diffstat (limited to 'lib_pypy/cffi/cparser.py')
-rw-r--r-- | lib_pypy/cffi/cparser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_pypy/cffi/cparser.py b/lib_pypy/cffi/cparser.py index 1fc0ec6ed4..df6303d7b6 100644 --- a/lib_pypy/cffi/cparser.py +++ b/lib_pypy/cffi/cparser.py @@ -16,6 +16,13 @@ try: except ImportError: lock = None +def _workaround_for_static_import_finders(): + # Issue #392: packaging tools like cx_Freeze can not find these + # because pycparser uses exec dynamic import. This is an obscure + # workaround. This function is never called. + import pycparser.yacctab + import pycparser.lextab + CDEF_SOURCE_STRING = "<cdef source string>" _r_comment = re.compile(r"/\*.*?\*/|//([^\n\\]|\\.)*?$", re.DOTALL | re.MULTILINE) |