On 2023-06-16 06 h 09, PICCA Frederic-Emmanuel wrote:
Hello,
I try to update the silx package and I want to replace this call
python3 setup.py install_scripts -d debian/silx/usr/bin
with the right call without setup.py.
thanks for your help
Frederic
Hi,
A good way to know what needs to be done is to remove the line and then diff
the result:
==
foo@bar:/tmp$ debdiff silx_1.1.2+dfsg-1_amd64.changes
silx_1.1.2+dfsg-2_amd64.changes
[The following lists of changes regard files as different if they have
different names, permissions or owners.]
Files in first .changes but not in second
-
-rwxr-xr-x root/root /usr/bin/silx
Control files of package python-silx-doc: lines which differ (wdiff format)
---
Version: [-1.1.2+dfsg-1-] {+1.1.2+dfsg-2+}
Control files of package python3-silx: lines which differ (wdiff format)
Version: [-1.1.2+dfsg-1-] {+1.1.2+dfsg-2+}
Control files of package python3-silx-dbgsym: lines which differ (wdiff format)
---
Depends: python3-silx (= [-1.1.2+dfsg-1)-] {+1.1.2+dfsg-2)+}
Version: [-1.1.2+dfsg-1-] {+1.1.2+dfsg-2+}
Control files of package silx: lines which differ (wdiff format)
Depends: python3-silx (>= [-1.1.2+dfsg-1), python3-numpy, python3:any-]
{+1.1.2+dfsg-2), python3-numpy+}
Installed-Size: [-65-] {+63+}
Version: [-1.1.2+dfsg-1-] {+1.1.2+dfsg-2+}
==
It seems the only thing this line does is to install /usr/bin/silx. This can be
done 'manually' via
dh_install (see man dh_install).
I personally tend to prefer having a file like 'debian/python3-silx.install'
instead of having a
'dh_install' line in 'debian/rules', as it yields a 'cleaner' d/rules file.
Cheers,
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ po...@debian.org / veronneau.org
⠈⠳⣄
OpenPGP_0xE1E5457C8BAD4113.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature