Debian Python Modules Team Application
I'd like to formally join the Python Modules Team, in order to help with the Python3 migration for existing modules (starting with python-networkmanager). My Alioth login is 'steele'. I've read the Debian Python Modules Policy, and accept it for Team Packages. signature.asc Description: GooPG digital signature
/usr/bin/python2 in shebangs?
Hi, I plan to prepare new dh-python upload soon and hence a question about a bit controversial change: should dh_python2 (as we discussed during last DebConf's Python BoF) replace /usr/bin/python shebangs with /usr/bin/python2? Please note that it's not about pointing /usr/bin/python to python3 - this will NOT happen. It's about making it easier to those admins that want to do that anyway (or removing /usr/bin/python from Debian completely) -- GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Re: /usr/bin/python2 in shebangs?
On 14.12.2017 14:38, Piotr Ożarowski wrote: > Hi, > > I plan to prepare new dh-python upload soon and hence a question about > a bit controversial change: should dh_python2 (as we discussed during > last DebConf's Python BoF) replace /usr/bin/python shebangs with > /usr/bin/python2? +1
Re: /usr/bin/python2 in shebangs?
2017-12-14 14:38 GMT+01:00 Piotr Ożarowski : > I plan to prepare new dh-python upload soon and hence a question about > a bit controversial change: should dh_python2 (as we discussed during > last DebConf's Python BoF) replace /usr/bin/python shebangs with > /usr/bin/python2? > +1 -- Best regards Ondřej Nový Email: n...@ondrej.org PGP: 3D98 3C52 EB85 980C 46A5 6090 3573 1255 9D1E 064B
Re: /usr/bin/python2 in shebangs?
Στις 14 Δεκεμβρίου 2017 3:38:46 μ.μ. EET, ο/η "Piotr Ożarowski" έγραψε: >Hi, > >I plan to prepare new dh-python upload soon and hence a question about >a bit controversial change: should dh_python2 (as we discussed during >last DebConf's Python BoF) replace /usr/bin/python shebangs with >/usr/bin/python2? > >Please note that it's not about pointing /usr/bin/python to python3 - >this will NOT happen. It's about making it easier to those admins that >want to do that anyway (or removing /usr/bin/python from Debian >completely) >-- >GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 +1
Re: /usr/bin/python2 in shebangs?
On Thu, 14 Dec 2017 at 15:39 Piotr Ożarowski wrote: > I plan to prepare new dh-python upload soon and hence a question about > a bit controversial change: should dh_python2 (as we discussed during > last DebConf's Python BoF) replace /usr/bin/python shebangs with > /usr/bin/python2? > Since on a Debian system we know we have /usr/bin/python2 (as opposed to some theoretical portable script that might need to run on other systems), this sounds perfectly fine to me.
[Urgent help needed ] python-pysam broken - may be Python3 3.6.3 to 3.6.4~rc1 transition issue (Was: Uploaded new version 1.6 of htslib, samtools & bcftools ...)
Hi, as I reported yesterday, I've tested python-pysam 0.13.0+ds-1 as in Git yesterday with the new samtools 1.6 package. (For those who need a prove here is the fill build[1].) Unfortunately if I build today the package does not build any more. The python2 tests are running fine but if it comes to python3 I get: ... ERRORS __ ERROR collecting .pybuild/pythonX.Y_3.6/build/tests/AlignedSegment_test.py __ ImportError while importing test module '/build/python-pysam-0.13.0+ds/.pybuild/pythonX.Y_3.6/build/tests/AlignedSegment_test.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/AlignedSegment_test.py:2: in import pysam pysam/__init__.py:28: in from pysam.samtools import * pysam/samtools.py:1: in from utils import PysamDispatcher E ModuleNotFoundError: No module named 'utils' __ ERROR collecting .pybuild/pythonX.Y_3.6/build/tests/AlignmentFile_test.py ___ tests/AlignmentFile_test.py:25: in import pysam pysam/__init__.py:9: in import pysam.libcutils as libcutils E AttributeError: module 'pysam' has no attribute 'libcutils' ERROR collecting .pybuild/pythonX.Y_3.6/build/tests/StreamFiledescriptors_test.py. tests/StreamFiledescriptors_test.py:8: in from pysam import AlignmentFile pysam/__init__.py:9: in import pysam.libcutils as libcutils E AttributeError: module 'pysam' has no attribute 'libcutils' ___ ERROR collecting .pybuild/pythonX.Y_3.6/build/tests/VariantFile_test.py tests/VariantFile_test.py:4: in import pysam pysam/__init__.py:9: in import pysam.libcutils as libcutils E AttributeError: module 'pysam' has no attribute 'libcutils' _ ERROR collecting .pybuild/pythonX.Y_3.6/build/tests/compile_test.py __ ImportError while importing test module '/build/python-pysam-0.13.0+ds/.pybuild/pythonX.Y_3.6/build/tests/compile_test.py'. Hint: make sure your test modules/packages have valid Python names. ... When comparing the build log of today with the one from yesterday I see differences in the Python versions: -Preparing to unpack .../50-libpython-dev_2.7.14-3_amd64.deb ... -Unpacking libpython-dev:amd64 (2.7.14-3) ... +Preparing to unpack .../49-libpython-dev_2.7.14-4_amd64.deb ... +Unpacking libpython-dev:amd64 (2.7.14-4) ... ... -Setting up python3 (3.6.3-2) ... -Setting up python3-dev (3.6.3-2) ... -Setting up python3-pkg-resources (38.2.4-1) ... -Setting up python3-all (3.6.3-2) ... +Setting up python3 (3.6.4~rc1-1) ... +Setting up python3-pkg-resources (38.2.4-2) ... +Setting up python3-all (3.6.4~rc1-1) ... So may be we are hit by a Python3 3.6.3 to 3.6.4~rc1 issue? Does anybody have a clue? Kind regards Andreas. [1] https://people.debian.org/~tille/packages/python-pysam/ -- http://fam-tille.de
Re: /usr/bin/python2 in shebangs?
Piotr Ożarowski writes: > I plan to prepare new dh-python upload soon and hence a question about > a bit controversial change: should dh_python2 (as we discussed during > last DebConf's Python BoF) replace /usr/bin/python shebangs with > /usr/bin/python2? +1, explicit is better than implicit. -- \ “Our task must be to free ourselves from our prison by widening | `\our circle of compassion to embrace all humanity and the whole | _o__) of nature in its beauty.” —Albert Einstein | Ben Finney