[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiled C modules are not found by test suite (Was: Help needed for python-biopython which splits up modules into two packages per Python version)



Hello,

Le 05/03/2014 10:31, Andreas Tille a écrit :
I have noted another problem:  I worked a bit
on the tests and noticed that those tests that are including compiled C
code are failing.  Is there anything in addition I need to do to make
the C object code visible to the Python modules?

Can non-DD see the source code somewhere?

IIUC you have a Python package and C extensions; when running the tests during the package build (or is it against the installed package?), the C extensions are not found. One explanation for that could be that the C extensions are built in a “build” directory instead of inside the Python package, and thus aren’t readily importable. If the build uses distutils/setuptools, there is an option to control that:

# file setup.cfg next to setup.py
[build_ext]
inplace = 1

Regards


Reply to: