Re: [RFH] Running Python tests that require the source to be installed
Hi Timo,
On Fri, 2024-10-25 at 22:19 +0200, Timo Röhling wrote:
> I ran into this issue with old-style setuptools packages (i.e.,
> packages with a setup.py); AFAIK the entry_points mechanism needs
> valid egg-info or dist-info metadata in the PYTHONPATH. My
> workaround was
>
>
> export PYBUILD_BEFORE_TEST=\
> {interpreter} setup.py egg_info; \
> cp -r {dir}/src/*.egg-info {build_dir}
>
> export PYBUILD_AFTER_TEST=\
> rm -r {dir}/src/*.egg-info {build_dir}/*.egg-info
Thanks, this is what I was looking for. I will give this a try.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: