Closed jamadden closed 7 years ago
It's worse than I thought. Under Python 3, the C extension is not importable at all:
>>> import zope.index.text.okascore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/zope.index/.tox/py34/lib/python3.4/site-packages/zope/index/text/okascore.so, 2): Symbol not found: _PyInt_AsLong
Referenced from: /zope.index/.tox/py34/lib/python3.4/site-packages/zope/index/text/okascore.so
Expected in: flat namespace
in //zope.index/.tox/py34/lib/python3.4/site-packages/zope/index/text/okascore.so
But the fallback Python code in okapiindex.py
comes into play and so things appear to work.
Sadly pip (and tox) hide these by default so they're hard to notice, but if you do
python setup.py bdist_wheel
you'll see the following compilation warnings:Presumably we just need to include a header.