Re: installation of script in a dedicated package

2023-06-16 Thread PICCA Frederic-Emmanuel
Hello Louis
 
> 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).

Yes it install only this script for now. I can do it by end. but in thaht case, 
I need to let python build the script from the entry point and then move it out 
of the pybuild directory.

> 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.

I agree to disagree :). I like a lot the fact than I can see everythings going 
one for a package by opening
only one file. I am more productive this way. Especially when I work on lot's 
of packages. cut en past beetween rules files is a lot easyer.
the multipliction of the .install files seems to me a waste of time :).

les gouts et les couleurs :).

Cheers

Frederic and thanks for your time.



Re: installation of script in a dedicated package

2023-06-16 Thread Louis-Philippe Véronneau

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