Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15032 > unrolled thread

python2:any dependency

Started byPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
First post2023-07-02 20:30 +0200
Last post2023-07-02 23:40 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  python2:any dependency PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2023-07-02 20:30 +0200
    Re: python2:any dependency Andrey Rakhmatullin <wrar@wrar.name> - 2023-07-02 22:50 +0200
      Re: python2:any dependency PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2023-07-02 23:40 +0200

#15032 — python2:any dependency

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2023-07-02 20:30 +0200
Subjectpython2:any dependency
Message-ID<GN9ZD-2u2a-7@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#15033

FromAndrey Rakhmatullin <wrar@wrar.name>
Date2023-07-02 22:50 +0200
Message-ID<GNcb7-2vk7-1@gated-at.bofh.it>
In reply to#15032
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.

[toc] | [prev] | [next] | [standalone]


#15034

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2023-07-02 23:40 +0200
Message-ID<GNcXv-2vRW-3@gated-at.bofh.it>
In reply to#15033
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web