[Numpy-discussion] How to run unittests at build time?

Sandro Tosi morph@debian....
Wed Sep 21 16:26:04 CDT 2011


On Wed, Sep 21, 2011 at 23:15, Filipe Pires Alvarenga Fernandes
<ocefpaf@gmail.com> wrote:
> Don't know about about Debian, but this works OK for RPM distros:
>
> PYTHONPATH="%{buildroot}%{py_sitedir}" %{__python} -c \
>                                    "import pkg_resources, numpy ; numpy.test()"
>
> The only thing you are missing is the "import pkg_resources", let me
> know if that works for you.

Ok it works: I have to run tests from the installed location and not
from the build/ subdir; Thanks!!

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the NumPy-Discussion mailing list