diff options
author | Armin Rigo <arigo@tunes.org> | 2018-12-25 15:33:34 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2018-12-25 15:33:34 +0100 |
commit | 6fb435a06e781fe8ef23c0d9793c1d8a9457a2bd (patch) | |
tree | 6e5566e12c67de4cd9b9df6195e293982edb0e93 /cffi | |
parent | b2a5fcb6997944d58eee87d0b40b563661828781 (diff) | |
download | cffi-6fb435a06e781fe8ef23c0d9793c1d8a9457a2bd.tar.gz |
Issue #392
Workaround for a pycparser issue.
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/cparser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cffi/cparser.py b/cffi/cparser.py index 1fc0ec6..df6303d 100644 --- a/cffi/cparser.py +++ b/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) |