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


Groups > linux.debian.maint.python > #10088

Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Piotr Ożarowski <piotr@debian.org>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref
Date Fri, 26 Jan 2018 10:10:01 +0100
Message-ID <vc8bf-1jB-1@gated-at.bofh.it> (permalink)
References <vbTYB-yG-7@gated-at.bofh.it> <vc0no-4De-11@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Jan 26 09:06:35 2018
Old-Return-Path <piotr@ozarowski.pl>
X-Amavis-Spam-Status No, score=-6.751 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
Mail-Followup-To debian-python@lists.debian.org, debian-science@lists.debian.org, 777089@bugs.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Operating-System Debian GNU/Linux (4.14.0-0.bpo.2-amd64)
User-Agent NeoMutt/20171208
X-Mailing-List <debian-python@lists.debian.org> archive/latest/15483
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20180126090617.g733vve6urd5fhts@sar0.p1otr.com
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 26 Jan 2018 10:06:17 +0100
X-Original-Message-ID <20180126090617.g733vve6urd5fhts@sar0.p1otr.com>
X-Original-References <5a235cb3-46fb-8231-f3bf-5da74fe0f319@p10link.net> <20180126003952.GD25523@perpetual.pseudorandom.co.uk>
Xref csiph.com linux.debian.maint.python:10088 linux.debian.bugs.dist:877771

Cross-posted to 2 groups.

Show key headers only | View raw


> > > However, in Debian case, I do not know how this can be handled as
> > > 2 packages cannot hold the same file (even if __init__ is only an empty
> > > file), and at least one must be present (if you install only one).
> 
> The Python jargon is that the "backports" shared by backports.tempfile
> and backports.weakref is a "namespace package".
> 
> For Python 2, dh_python2 handles this: python-lazr.restfulclient and
> python-lazr.uri are an example of cooperating packages that share a
> namespace package.

FTR: If you want to use dh_python2's --namespace: make sure ALL packages
that share namespace use this feature and not a single one ships
__init__.py file.

> > I'm not a python expert but I expect the least-horrible way to do this
> > would be to ship a package that only contained the __init__. Then have
> > all the python-backports.* packages depend on it.
> 
> This is not necessary, and would probably (hopefully?) lead to rejection
> from the NEW queue.

I don't think it's a bad solution, I used it in the past for some
packages.
-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Next python-mote pre-condition - issue with pybuild:  python-backports.tempfile conflicting python-backports.weakref peter green <plugwash@p10link.net> - 2018-01-25 19:00 +0100
  Re: Next python-mote pre-condition - issue with pybuild:  python-backports.tempfile conflicting python-backports.weakref Simon McVittie <smcv@debian.org> - 2018-01-26 01:50 +0100
    Re: Next python-mote pre-condition - issue with pybuild:  python-backports.tempfile conflicting python-backports.weakref Piotr Ożarowski <piotr@debian.org> - 2018-01-26 10:10 +0100

csiph-web