When you play with nose and try to combine it with cython , I canβt get everything enough to work as I would like. The code is organized as follows:
. βββ setup.py βββ src βββ calc β βββ factorial.py β βββ __init__.py β βββ tests.py βββ cycalc βββ tests.py βββ triangle.pyx
Each of tests.py contains 2 tests, one succeeds, one fails. The result of running setup.py nosetests is to execute only calc/tests.py . If after this run nosetests3 src/cycalc two tests are cycalc/tests.py in cycalc/tests.py . However, if I clear all the assembly files, this fails because cycalc/triangle.pyx not built into the shared lib.
Then I tried to add the src/cycalc/__init__.py , now setup.py nosetests selects cycalc/tests.py , but cannot find the necessary module, it is placed in src .
How do I configure cython source and tests so that setup.py nosetests finds everything it needs?
source share