pytest-cython icon indicating copy to clipboard operation
pytest-cython copied to clipboard

Support out-of-source builds

Open tobiasdiez opened this issue 1 year ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe.

Currently, it is required that the cython files are built before running the pytests in such a way that the compiled artifacts are placed next to the source files. However, many build systems (such as meson, which gets more and more popular with python projects) place the .so files in a build-directory and not in the source folder. In this case, pytest-cython is simply doing nothing.

Describe the solution you'd like

Support out-of-source builds.

Additional context

It should work to use importlib to try to load the built cython module.

tobiasdiez avatar Nov 07 '24 06:11 tobiasdiez

probably we have to fix it ourselves...

dimpase avatar Dec 12 '24 02:12 dimpase