[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pybuild: Build-testing with the package installed



On Thu, Nov 14, 2024 at 01:38:29PM +0100, Matthias Urlichs wrote:
> Hi,
> 
> I'm trying to locally build a fixed version of a buggy package which happens
> to be installed on the system.
> 
> "debuild -b -us -uc" reports:
> 
> Successfully built moat_lib_codec-0.2.2-py3-none-any.whl
> I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> dh_auto_test: warning: Use of debian/compat is deprecated and will be removed in debhelper (>=14~).
> I: pybuild base:311: cd /src/moat/lib/codec/.pybuild/cpython3_3.12_moat-lib-codec/build; python3.12 -m pytest tests
> 
> Note the nonexistence of "PYTHONPATH=." in this command line

python -m does that for you, doesn't it?

> which causes the test suite to use the installed version

I expect the problem to be caused by something else.




-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: