Tuesday, September 24, 2019

Re: New devel/py-base58

On Tue, Sep 24, 2019 at 12:39:35PM -0400, Kurt Mosiejczuk wrote:

> Try installing both flavors at once. You've got a script that is just in
> /usr/local/bin without any differentiation. So it will conflict.

> The usual method is renaming the python3 version with a "-3" on the
> end by using MODPY_SUFFIX

> If it was *just* a binary to use and didn't include a library, we might
> just make it Python 3.x only to avoid the problem.

> You can fix it with a port-install target

> post-install
> mv ${PREFIX}/bin/base58 ${PREFIX}/bin/base58${MODPY_SUFFIX}

> You will need to regenerate the PLIST.

This port is easy since it is just one file in bin. If doing a port
with multiple, a good example to look at is www/py-gunicorn. It's got
a for loop that will fix as many binaries as exist.

--Kurt

No comments:

Post a Comment