lang/python port module. I've not yet come up with a port that
would not need this and one can always set MODPY_TESTDEP to "no"
to prevent the module from touching TEST_DEPENDS.
Idea from afresh1 who pointed out the cpan module already does this.
aja "I support this move."
OK sthen@
MODPY_TEST_ARGS was not enough to get the tests to run using
MODPY_PYTEST, geo/py-proj.
This adds MODPY_TEST_DIR, which defaults to WRKSRC as is normal, to
allow overriding the subdirectory that tests run in. This isn't
specific to MODPY_PYTEST, it will work for PY_SETUPTOOLS tests also.
OK landry@ sthen@
With this all the python ports using pytest do not need to setup their
own do-test taret. Instead "MODPY_PYTEST = Yes" does the job.
from Kurt Mosiejczuk
ok kn@
If needed this allows to overwrite it.
I looks like python preferes C.UTF-8. But Ingo pointed out that on
OpenBSD en_US.UTF-8 is prefered and the former is just a link to the later.
from Kurt Mosiejczuk
ok sthen@
surprising.
It's always controlled by MODPY_BUILDDEP, which defaults to Yes
usually, unless NO_BUILD=Yes is set, and then it defaults to No.
this caters to matthieu's xcbgen port
okay aja@, rpointel@
fixes by shadchin@, bulk build by me, support from danj@, no objection
from naddy@
All 250-something ports depending on python3 will be bumped in a few.
Fasten your seatbelts.
Beginning with Python 3.5 .pyo files are no longer used and
have been replaced by a more flexible scheme that includes
the optimization level explicitly in .pyc name (See PEP-488).
The make(1) variables assignements would lead to setuptools added to
MODPY_LIB_DEPENDS (bogus). py-Pillow was affected but no plist change.
Fix _MODPY_BUILD_DEPENDS similarly, no port affected.
ok ajacoutot@, also discussed with sthen@ months ago
refactor the do-* tests to be usable in cooperation with other modules
that want similar things, like we did in ruby and cmake.
(checked through a bulk-build, ok rpointel@)
flavours. (Only affects the, possibly currently non-existent, case where a
port has python3 and another flavour). Switch to ?= rather than = to permit
further overriding in the port Makefile. Discussed with many, no change
to INDEX, looks good to fgsch@ rpointel@.
Successfully tested with gnome which is the biggest consumer of py3 -- any
regression, please let me know.
discussed with fgsch@ rpointel@ sthen@ jasper@ landry@ zhuk@