On 2011-11-16, Remi Pointel <remi.poin...@xiri.fr> wrote:
> So, if your ports use:
> 1) Python 2 only
> - nothing to change
>
> 2) Python 2 and Python 3:
> - add IS_PY3 = Yes
> - add to your *_DEPENDS : ${MODPY_FLAVOR}, without comma (example: 
> BUILD_DEPENDS: devel/py-distribute${MODPY_FLAVOR}).
> - make sure your PLIST will not be in conflict by adding special tasks in 
> post-install. Example:
> post-install:
>       mv ${WRKINST}/${LOCALBASE}/foo/bar 
> ${WRKINST}/${LOCALBASE}/foo/bar${MODPY_BIN_SUFFIX}
>
> If you use the default FLAVOR (Python 2), MODPY_BIN_SUFFIX is "", so no 
> modifications for people who use the default. If you use the FLAVOR Python 3, 
> MODPY_BIN_SUFFIX = 3.
> Add ${MODPY_BIN_SUFFIX} to your PLIST.
>
> 3) Python 3:
> - add IS_PY3 = Only

Nice approach, I like it a lot.

> I think the best thing to do now is to patch python.port.mk and run a full 
> bulk build to see if all ports are ok :).

The only other thing we need is a bit of text explaining this in
port-modules(5), I can take a look at that if you like.


Reply via email to