[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,

I got the code and the debian directory. I confirmed that extension modules are in the build directory, not alongside the Python modules, so they can’t be imported from tests.

There are two ways to fix that: either make distutils build the extensions alongside the Python modules, or make the test import all code from the build directory. I’m surprised that this isn’t a common issue for PMPT.

I tried the first solution and did not see a difference in tests: both times, 223 tests were run successfully. I’d like to reproduce the errors you mention to be sure that any change I make is actually a fix.

Unfortunately, there is a long-standing bug in distutils where extensions modules built alongside the Python modules are not found by the install command. This means that you’d have to compile twice (once in-place to run the tests, one to a build directory to install to debian/tmp/etc.), or that you’d prefer the other fix.

  Cheers


Reply to: