On Mon, Apr 22, 2019 at 02:25:22PM -0400, Kurt Mosiejczuk wrote:
> Landry was having a problem converting geo/py-proj to use MODPY_PYTEST.
> The tests just wouldn't run. The port had to cd into ${WRKSRC}/test and
> then run pytest. Normally the solution would be to put "test" into
> MODPY_PYTEST_ARGS and pytest would be happy. That doesn't work in this
> case. 
> 
> So I added MODPY_TEST_DIR to python.port.mk. It defaults to ${WRKSRC}
> so default behavior is identical, but in a case where you need to cd
> into another directory for the tests to work, you can override it.
> 
> Landry tested this diff and it solved his issue with geo/py-proj.

Fwiw i'm okay with this diff, but an ok from a python porter would be
better :)

Reply via email to