Commit 0a3ec6c9 authored by Maciej Fijalkowski's avatar Maciej Fijalkowski
Browse files


parent e43094a16966
......@@ -14,3 +14,7 @@ Contact
[Mailing list](!forum/python-cffi)
To run tests under CPython, run:
python build_ext -i
from . import api, model
from .commontypes import COMMON_TYPES, resolve_common_type
import pycparser.c_parser, weakref, re, sys
from cffi import _pycparser as pycparser
except ImportError:
import pycparser
import weakref, re, sys
if sys.version_info < (3,):
......@@ -513,7 +517,7 @@ class Parser(object):
nextenumvalue = self._parse_constant(enum.value)
nextenumvalue += 1
enumvalues = tuple(enumvalues)
enumvalues = tuple(enumvalues)
tp = model.EnumType(explicit_name, enumerators, enumvalues)
tp.partial = partial
else: # opaque enum
......@@ -18,7 +18,7 @@ def create_venv(name):
site_packages = dirpath
if site_packages:
for module in ('cffi', '_cffi_backend', 'pycparser', 'ply'):
for module in ('cffi', '_cffi_backend', 'pycparser'):
target = imp.find_module(module)[1]
os.symlink(target, os.path.join(site_packages,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment