tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dealing with packages that put * in wheels
On Sun, 24 Nov 2024 10:07:01 -0500
Greg Troxel <gdt%lexort.com@localhost> wrote:
> matrix-synapse has some patches, to work around upstream bugs. This
> is of course normal.
>
> The build installs foo.orig, resulting in a PLIST error that foo.orig
> is in DESTDIR. But the error is the installed file not the PLIST.
> Removing them from the source directory in pre-build: avoids this,
> but removing in pre-install: does not.
>
> Generally, one doesn't want to remove these early so that a
>
> make
> pkgvi
> make
> mkpatches
>
> session will do the right thing.
>
> I am pretty sure the issue is that these end up in .whl at build time,
> and install just installs the wheel.
>
> Is it unusually buggy of python programs to put *.orig in wheels?
>
> Do we have a preferred way to deal with this?
You can try to patch the pyproject.toml file, it has an "exclude =" part
under [tool.poetry] adding something like:
{ path = "**/*.orig", format = "wheel"}
to the exclude list might work.
see: https://python-poetry.org/docs/pyproject/#include-and-exclude
Home |
Main Index |
Thread Index |
Old Index