I have to pack Python wheels into .deb, and for that I use simple debian/rules:
%:
dh $@
And I have a pipdebs.install file:
#!/usr/bin/dh-exec
../external/python3.10/wheels /usr/lib/python3.10/.cache/pip/
../external/python3.10/requirements.txt /usr/lib/python3.10/.cache/pip/
But the problem is that when I build .deb and extract wheels directory from data.tar.zst/usr/lib/python3.10/.cache/pip/wheels then it differs from the ../external/python3.10/wheels one.
Why is that?
I have reproduced your error with
debhelper-compat (=13). Next time you rundpkg-buildpackage, pay attention to the console output. I got following (interesting) message:Quick googling results in that
So, that also explains why your wheels inside
.debdiffer from the ones you have outside.deb.Workaround is (
YYYis yourPackage:indebian/controlthat you don't want to performdh_strip_nondeterminismon andXXXis the package you want to performdh_strip_nondeterminismon ):Note, that this workaround will do the
dh_strip_nondeterminismonly for theXXXpackage and not for othersYYY, ... packages