Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= 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: Mon, 22 Jan 2018 15:30:02 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org, Debian Science List , 777089@bugs.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Jan 22 14:22:45 2018 Old-Return-Path: 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 List , 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: archive/latest/15475 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20180122142227.wfkh4cnfqp5s3fhg@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 22 Jan 2018 15:22:27 +0100 X-Original-Message-ID: <20180122142227.wfkh4cnfqp5s3fhg@sar0.p1otr.com> X-Original-References: <20180112160153.swvluhcudyw43ll6@an3as.eu> <20180115083753.pen4mpryoar6cji5@an3as.eu> <20180115115929.gnffbsmgmr2b2dcr@an3as.eu> <20180115125227.e63vjwbitdyes26l@sar0.p1otr.com> <20180115150627.kgbqbkp4vxctyaj6@an3as.eu> <20180115151500.zki5z3lxuhldylzr@sar0.p1otr.com> <20180116204521.xm27u6rucyoxgk2p@an3as.eu> <20180122140410.llapcwh7xg2uwsg7@an3as.eu> Xref: csiph.com linux.debian.maint.python:10080 linux.debian.bugs.dist:876797 [Andreas Tille, 2018-01-22] > Hi, > > I kept on working packaging python-moto predependencies. I'm now > stumbling upon python-backports.tempfile[1] and > python-backports.weakref[2]. My naive packaging attempt puts > the modules into > > /usr/lib/python*/dist-packages/backports > > leaving the same package > > /usr/lib/python3/dist-packages/backports/__init__.py if it's an empty file (or can be removed, as most probably in this case) you can tell dh_python2 to handle the namespace for you with: override_dh_python2: dh_python2 --namespace backports For Python 3, __init__.py is not needed anymore, so you can simply remove it in both packages by creating debian/python3-foo.pyremove file with "backports/__init__.py" > for both packages and thus the packages are conflicting. I have no idea > why pybuild simply uses the dir backports instead of the full module that's how Python works, nothing to do with pybuild -- GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645