Daniel Dickman writes:
> Surprisingly I think this might now need an explicit:
>
> TEST_DEPENDS = lang/python/${MODPY_VERSION}
>
> Without Python already installed and without a TDEP on py-test, there's 
> nothing to force python to be installed.
>
> And the latest commit now hides the fact that gambatte is a consumer of 
> python2 from show-reverse-deps.
>
> Maybe something that should be fixed in python.port.mk? I haven't looked 
> too closely what the python module does for tests. On the other hand there 
> are probably very few ports left with TDEPs on python 2 so might not be 
> worth fixing centrally...

python-module(5) says:

     The module also appends to

     -   RUN_DEPENDS unless MODPY_RUNDEP is set to No,

     -   BUILD_DEPENDS unless MODPY_BUILDDEP is set to No or NO_BUILD is set
         to Yes,

     -   TEST_DEPENDS if MODPY_PYTEST is set to Yes unless MODPY_TESTDEP is
         set to No.

I misinterpreted that as saying that setting MODPY_TESTDEP to Yes would
also append Python to TEST_DEPENDS. The actual behavior seems pretty
unintuitive to me. It's not limited to Python 2 either.

Reply via email to