svn commit: r496937 - in head/devel: . py-cftime

Kubilay Kocak koobs at FreeBSD.org
Wed Mar 27 09:27:03 UTC 2019


On 27/03/2019 7:36 pm, Wen Heping wrote:
> +do-test:
> +	@cd ${WRKSRC} && py.test

Use the specific Python version for this invocation, as only the default 
version of py.test gets the version-less script name, so it wont work 
for non-default builds of this port.

${PYTHON_CMD} -m pytest (preferred)

or

LOCALBASE/bin/py.test-${PYTHON_VER)

If the setup.py file has an integrated test command (try python setup.py 
test to check), this becomes the preferred method:

${PYTHON_CMD} ${PYDISTUTILS_SETUP} test


More information about the svn-ports-head mailing list