[TIP] How do I get tox to test extension modules?

Berthold Höllmann berthold at xn--hllmanns-n4a.de
Sat Oct 19 05:38:55 PDT 2013


berthold at xn--hllmanns-n4a.de (Berthold Höllmann) writes:

> I am trying to set up tox tests for a Project that contains a cython
> defined extension module. I don't find a way to get the extension
> compiled in the tox virtualenv. setup.py builds the extension, and
> pytest finds it OK if I give the correct PYTHONPATH, but tox installs
> the sources only but not the compiled extension:

Never mind. Adding "python setup.py install" to the testenv commands
does the trick.

Kind regards 

Berthold

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20131019/3fb166a5/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20131019/3fb166a5/attachment-0001.pgp>


More information about the testing-in-python mailing list