I have one library libsparse.so that I am wrapping with CFFI 1.0.0
The *.py wrapper files were something that were working with CFFI 0.8.1 and I am porting to CFFI 1.0.0
It has 10 headers, such as lib.h, allocate.h, symbol.h, etc.
Each now has a wrapper python file, such as lib.py, allocate.py, symbol.py, etc
I have single setup.py file that looks like
from distutils.core import setup
#from setuptools import setup
import lib
import allocate
import token
import symbol
import scope
......
setup(
name='sparse',
description='Python Wrapper for the Sparse library.',
packages=['sparse',],
package_dir={'sparse' : '',},
ext_modules=[
lib.ffi.distutils_extension(),
allocate.ffi.distutils_extension(),
token.ffi.distutils_extension(),
symbol.ffi.distutils_extension(),
scope.ffi.distutils_extension(),
]
)
I am seeing an error as below.
NotImplementedError: internal inconsistency: <struct context_list>
I am not sure what that means.
Interestingly
1. The content of these .py files are something that was working on 0.8.1
2. When I compile the setup file for each of these .py files separately, by commenting the rest out, they compile and import fine. Its only when I put everything together that I have this error.
Can someone help with what might be going wrong here.
Thanks,
Sarvi