On 2020/06/29 12:06, Paul Irofti wrote: > I think you are making this python3 only. If I am correct you need the > FLAVOR dance, what your diff does is the old way of doing py3-only > ports. Don't worry, I hit this myself quite recently :)
this is the right way for a standalone port, basically like this: port is a program which happens to be written in python -> "foo" pkgname -> MODPY_VERSION=${MODPY_DEFAULT_VERSION_3} port is a module used by other ports -> "py-foo" / "py3-foo" pkgname -> FLAVOR=python3/FLAVORS=python3 if it's both a program and a module used by other ports, then we need the py-/py3- split to avoid conflicts, so it needs to be treated like a module we probably need a guide to writing python ports somewhere, they're a bit complicated and the wall of text in port-modules(5) is unreadable (and doesn't exactly mention this directly anyway).