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)

2014-03-17 Thread Andreas Tille
Hi Piotr, On Sat, Mar 15, 2014 at 12:52:41PM +0100, Piotr Ożarowski wrote: pybuild takes care of distutils cannot find files it build in previous step and has to build them again problem. I just checked python-biopython and all .so files are in the right location (yey pybuild! :). The

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)

2014-03-15 Thread Andreas Tille
Hi Éric, On Fri, Mar 14, 2014 at 07:15:26PM -0400, Éric Araujo wrote: 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.

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)

2014-03-15 Thread Éric Araujo
Hi, 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. I guess this is the solution since if the C modules are not found the test

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)

2014-03-15 Thread Julian Taylor
On 15.03.2014 00:15, Éric Araujo wrote: 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

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)

2014-03-15 Thread Piotr Ożarowski
[Éric Araujo, 2014-03-15] Hi, 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. I guess this is the solution since if the C

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)

2014-03-14 Thread Andreas Tille
On Wed, Mar 12, 2014 at 01:20:38AM -0400, Éric Araujo wrote: 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

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)

2014-03-14 Thread Éric Araujo
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

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)

2014-03-11 Thread Éric Araujo
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

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)

2014-03-05 Thread Andreas Tille
Hi again On Tue, Mar 04, 2014 at 07:18:08PM +0100, Andreas Tille wrote: you can force pybuild to move BioSQL files to a different location (hint: --ext-dest-dir --ext-pattern or equivalent PYBUILD_* vars) but IMO it's cleaner to use *.install files for that Hmmm, you say *.install files