Tuesday, September 03, 2024

Re: archivers/py-zstandard: improve tests

On Tue, 03 Sep 2024 10:56:10 +0200,
Stuart Henderson <stu@spacehopper.org> wrote:
>
> If you can find a way, it would be much better if this could be handled
> in python.port.mk than individual ports, it should be the same for any
> ports using a certain MODPY_PYBUILD type (at least those that have .so
> extensions).
>
> It feels like there should be a way to set PYTHONPATH etc to avoid the
> mess of copying/linking but I didn't hit upon it yet...

I tried to find a generic way to fix it. But as far as I know, we have three
ports affected by this problem: net/synapse, archivers/py-zstandard and
devel/py-uvloop.

The first one uses poetry-core, and the others use setuptools. This means it
doesn't MODPY_PYBUILD specified.

The first two use rust inside, and the last one doesn't. So, neither does
this.

The best generic solution I have in mind is another variable that allows to
find what links or moves .so; but it looks pretty ugly, isn't it?

--
wbr, Kirill

No comments:

Post a Comment