Re: pybuild: where to put --test-pytest?

2014-03-15 Thread Barry Warsaw
On Mar 15, 2014, at 12:06 AM, Piotr Ożarowski wrote: >In distutils build plugin, pybuild already checks for "test_suite" in >setup.py (which apparently is not the only case where >`{interpreter} setup.py test` should be invoked), invokes >`{interpreter} -m unittest discover -v`... but only for so

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
Le 15/03/2014 07:52, Piotr Ożarowski a écrit : The problem is package's root directory has higher priority on sys.path and your package has both Bio and BioSQL it there (instead of in src or lib directory, like other upstreams do... you know... "Python standards") Sure, a part of the communit

Re: Selecting python-flask vs python3-flask

2014-03-15 Thread Thomas Goirand
On 03/15/2014 07:39 PM, Mathieu Malaterre wrote: > [CC me please] > > Hi, > > I am trying to work on : > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740907 > > Basically I have an example package (dh_installexamples) which needs > to depends on python-flask. Depending whether my use

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

Selecting python-flask vs python3-flask

2014-03-15 Thread Mathieu Malaterre
[CC me please] Hi, I am trying to work on : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740907 Basically I have an example package (dh_installexamples) which needs to depends on python-flask. Depending whether my users installed python3-openslide or python-openslide, I need to Recomme

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

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 is

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