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

fixes

parent e43094a16966
......@@ -14,3 +14,7 @@ Contact
-------
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
To run tests under CPython, run:
python setup.py build_ext -i
from . import api, model
from .commontypes import COMMON_TYPES, resolve_common_type
import pycparser.c_parser, weakref, re, sys
try:
from cffi import _pycparser as pycparser
except ImportError:
import pycparser
import weakref, re, sys
try:
if sys.version_info < (3,):
......@@ -513,7 +517,7 @@ class Parser(object):
nextenumvalue = self._parse_constant(enum.value)
enumvalues.append(nextenumvalue)
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
break
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,
os.path.basename(target)))
......
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