Re: RE:Help running tests in python-biom-format
Hi Andreas,
I second that - the tests run fine if I do:
cd python-biom-format-1.2.0/python-code
env PYTHONPATH=../build/lib.linux-x86_64-2.7/biom nosetests
Also, if I have python-biom-format installed then the commands work fine
and I can do:
cd ~ ; python -c 'import biom.sparsemat'
But within the python-code directory the above command fails, as it
picks up the local biom/sparsemat.py module but is missing
_sparsemat.so.
Or is that not working on Sid?
Cheers,
TIM
On Tue, 2013-11-12 at 10:32 +0000, PICCA Frederic-Emmanuel wrote:
> Hell andreas
>
> for numexpr we are doing like this.
> you need to set the PYTHONPATh in order to find the extension
>
>
> override_dh_auto_test:
> ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
>
> set -e -x;\
> for py in $(PY2VERS) $(PY3VERS); do \
> cd $(CURDIR)/build/lib.*-$$py;\
> env PYTHONPATH=. python$$py numexpr/tests/test_numexpr.py;\
> cd $(CURDIR)/build/lib.*-$$py-pydebug;\
> env PYTHONPATH=. python$$py-dbg numexpr/tests/test_numexpr.py;\
> done
>
> endif
>
>
> cheers
>
> Fred
--
Tim Booth <tbooth@ceh.ac.uk>
NERC Environmental Bioinformatics Centre
Centre for Ecology and Hydrology
Maclean Bldg, Benson Lane
Crowmarsh Gifford
Wallingford, England
OX10 8BB
http://nebc.nerc.ac.uk
+44 1491 69 2705
Reply to: