Re: python2:any dependency

2023-07-02 Thread PICCA Frederic-Emmanuel
The sheband distributed by the upstream did not changed

#!python

but previously it was replaced by a python3 shebang.

here for the previous version

D: dh_python3 dh_python3:179: version: 5.20230109
D: dh_python3 dh_python3:180: argv: ['/usr/bin/dh_python3', '-i', 
'-O--buildsystem=pybuild']
D: dh_python3 dh_python3:181: options: Namespace(guess_deps=True, 
skip_private=False, verbose=True, arch=False, package=None, no_package=None, 
remaining_packages=False, compile_all=False, vrange=None, regexpr=None, 
accept_upstream_versions=False, depends=None, depends_section=None, 
recommends=None, recommends_section=None, suggests=None, suggests_section=None, 
requires=None, shebang=None, ignore_shebangs=False, clean_dbg_pkg=True, 
no_ext_rename=False, no_shebang_rewrite=False, private_dir=None, 
O=['--buildsystem=pybuild'])
D: dh_python3 dh_python3:182: supported Python versions: 3.10,3.11 
(default=3.11)
D: dh_python3 debhelper:175: skipping package pymca-data (missing 
${python3:Depends} in Depends/Recommends)
D: dh_python3 debhelper:175: skipping package pymca-doc (missing 
${python3:Depends} in Depends/Recommends)
D: dh_python3 debhelper:183: source=pymca, binary packages=['pymca']
D: dh_python3 dh_python3:204: processing package pymca...
D: dh_python3 fs:400: package pymca details = {'requires.txt': set(), 
'egg-info': set(), 'dist-info': set(), 'nsp.txt': set(), 'shebangs': 
{/usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, 
/usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, 
/usr/bin/python3}, 'public_vers': set(), 'private_dirs': {}, 'compile': False, 
'ext_vers': set(), 'ext_no_version': set()}
D: dh_python3 depends:117: generating dependencies for package pymca
D: dh_python3 depends:281: D={'python3:any'}; R=[]; S=[]; E=[], B=[]; RT=[]
   dh_installsystemduser -i -O--buildsystem=pybuild


Indeed the shebang was identical

https://sources.debian.org/src/pymca/5.8.0%2Bdfsg-2/PyMca5/scripts/edfviewer/

#!python

So the behaviour of dh_python3 changed.

Now If I want to solve this what is the best solution
  - a patch which replace all python with python3
  - dh_python3 --shebang=/usr/bin/python3

thanks for your advices.

Frederic

Fred



Re: python2:any dependency

2023-07-02 Thread Andrey Rakhmatullin
On Sun, Jul 02, 2023 at 08:10:15PM +0200, PICCA Frederic-Emmanuel wrote:
> I: dh_python3 tools:114: replacing shebang in 
> debian/pymca/usr/bin/edfviewerD: dh_python3 fs:400: package pymca details = 
> {'requires.txt': set(), 'egg-info': set(), 'dist-info': set(), 'nsp.txt': 
> set(), 'shebangs': {/usr/bin/python2, /usr/bin/python2, /usr/bin/python2, 
> /usr/bin/python2, /usr/bin/python2, /usr/bin/python2, /usr/bin/python2, 
> /usr/bin/python2, /usr/bin/python2}, 'public_vers': set(), 'private_dirs': 
> {}, 'compile': False, 'ext_vers': set(), 'ext_no_version': set()}
If your package ships scripts with python2 shebangs it makes sense that it
requires python2.



python2:any dependency

2023-07-02 Thread PICCA Frederic-Emmanuel
Hello, I updated pymca with the new upstream version, and now the pymca package 
depends on the missing python2:any package (which is not available in Debian).

This dependency was generated by dh_python3 during the build all.


   dh_python3 -i -O--buildsystem=pybuild
D: dh_python3 dh_python3:179: version: 5.20230603
D: dh_python3 dh_python3:180: argv: ['/usr/bin/dh_python3', '-i', 
'-O--buildsystem=pybuild']
D: dh_python3 dh_python3:181: options: Namespace(guess_deps=True, 
skip_private=False, verbose=True, arch=False, package=None, no_package=None, 
remaining_packages=False, compile_all=False, vrange=None, regexpr=None, 
accept_upstream_versions=False, depends=None, depends_section=None, 
recommends=None, recommends_section=None, suggests=None, suggests_section=None, 
requires=None, shebang=None, ignore_shebangs=False, clean_dbg_pkg=True, 
no_ext_rename=False, no_shebang_rewrite=False, private_dir=None, 
O=['--buildsystem=pybuild'])
D: dh_python3 dh_python3:182: supported Python versions: 3.11 (default=3.11)
D: dh_python3 debhelper:175: skipping package pymca-data (missing 
${python3:Depends} in Depends/Recommends)
D: dh_python3 debhelper:175: skipping package pymca-doc (missing 
${python3:Depends} in Depends/Recommends)
D: dh_python3 debhelper:183: source=pymca, binary packages=['pymca']
D: dh_python3 dh_python3:204: processing package pymca...
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/rgbcorrelator
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/pymcaroitool
I: dh_python3 tools:114: replacing shebang in 
debian/pymca/usr/bin/pymcapostbatch
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/pymcabatch
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/pymca
I: dh_python3 tools:114: replacing shebang in 
debian/pymca/usr/bin/peakidentifier
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/mca2edf
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/elementsinfo
I: dh_python3 tools:114: replacing shebang in debian/pymca/usr/bin/edfviewerD: 
dh_python3 fs:400: package pymca details = {'requires.txt': set(), 'egg-info': 
set(), 'dist-info': set(), 'nsp.txt': set(), 'shebangs': {/usr/bin/python2, 
/usr/bin/python2, /usr/bin/python2, /usr/bin/python2, /usr/bin/python2, 
/usr/bin/python2, /usr/bin/python2, /usr/bin/python2, /usr/bin/python2}, 
'public_vers': set(), 'private_dirs': {}, 'compile': False, 'ext_vers': set(), 
'ext_no_version': set()}


it was not the case before..., so my question is : "is it normal or a bung in 
dh_python3"

Cheers

Frederic