Path: csiph.com!news.mixmin.net!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Olivier Sallou 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: Tue, 23 Jan 2018 17:20:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Jan 23 16:11:26 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-10 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_HI=-5, THREADTOPIC=2] autolearn=unavailable autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 X-Ironport-Av: E=Sophos;i="5.46,402,1511823600"; d="scan'208";a="310324533" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [93.182.241.67] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - GC63 (Linux)/8.0.9_GA_6191) Thread-Topic: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref Thread-Index: UHUNzU59CPuQ7TE36rRqZ/sStyOgMQ== X-Mailing-List: archive/latest/15478 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1287060898.28997207.1516723865837.JavaMail.zimbra@irisa.fr Approved: robomod@news.nic.it Lines: 67 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org, Debian Science List , 777089@bugs.debian.org X-Original-Date: Tue, 23 Jan 2018 17:11:05 +0100 (CET) X-Original-Message-ID: <1287060898.28997207.1516723865837.JavaMail.zimbra@irisa.fr> X-Original-References: <20180112160153.swvluhcudyw43ll6@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:10083 linux.debian.bugs.dist:877085 ----- Mail original ----- > De: "Andreas Tille" > =C0: debian-python@lists.debian.org, "Debian Science List" , 777089@bugs.debian.org > Envoy=E9: Lundi 22 Janvier 2018 15:04:10 > Objet: Re: Next python-mote pre-condition - issue with pybuild: python-ba= ckports.tempfile conflicting > python-backports.weakref >=20 > Hi, >=20 > 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 well, package name should not really use dots in name, I suppose that's wha= t leads to error. But don't know how to fix that with python helper... :-( both modules use the same "base module", ie *backports* so final dest is co= rrect. From a pure python point of view, you can "merge" multiple sub modul= es in the same mail module, python will manage the duplication of __init__.= py However, in Debian case, I do not know how this can be handled as 2 package= s cannot hold the same file (even if __init__ is only an empty file), and a= t least one must be present (if you install only one). Olivier >=20 > /usr/lib/python*/dist-packages/backports >=20 > leaving the same package >=20 > /usr/lib/python3/dist-packages/backports/__init__.py >=20 > 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 > name nor do I have any idea how to fix this. I tried to hack around in > the backports.weakref package using >=20 >=20 > override_dh_auto_install: > for dir in `find .pybuild -type d -name backports | sort | uniq` = ; do > \ > mv $${dir} $${dir}.weakref ; \ > done > dh_auto_install >=20 > but this rather has led to an empty package. >=20 > Any help is welcome >=20 > Andreas. >=20 >=20 > [1] https://salsa.debian.org/science-team/python-backports.tempfile.git > [2] https://salsa.debian.org/science-team/python-backports.weakref.git >=20 > -- > http://fam-tille.de >=20 >=20