Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!news.panservice.it!bofh.it!news.nic.it!robomod From: Tiago Ilieve Newsgroups: linux.debian.maint.python Subject: Re: Properly splitting Python "-doc" packages Date: Thu, 14 Apr 2016 17:10:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Apr 14 15:03:27 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-2.799 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=kFOTi0i7wS9VZ4DTWO4VWZEroa0HNAzxqo4/PlnDwAU=; b=KDC/Yw4DvEiQHYVPMKt9yDGKRAGfz7t74/mRNGtFFoJz1mO51S85654cP2uiTwuxud 6v8tTeRz+OowOrHH/6KjIdSkGDN4hmW1MF6915b5ZAuFVVAAiflVbLZbnQWOeTc0v0Nr jIa4PeEdvr2CyGFQZTL/E2iPLxxjHrdLetzcxkSGQM0kg/ssCaAqoGweNb1LI68QuCma JWE/xU9IPYElBAqpKlqw7xbPQgyCIxa5eKDWze6Cu4SZ7EQNdpyCbXzx+x7FoU/CC2M/ ZR5BHhyPPck6Z0s16hHAn7ARBF95xIJQyuUFrDNl5Y1iVjp402M4kJGyC+dswwcD4UvW v0Og== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=kFOTi0i7wS9VZ4DTWO4VWZEroa0HNAzxqo4/PlnDwAU=; b=XUkWsXSLgiFlQJIQ+GsYJR0y7eCXcFwxmalQa3M8rvz5SQ6tNenlytTBnDHXPJl8wx sK0IuX/uaNTLRPnYjsmiHNSrtdnztXpkELGSOmZYWnfnBX4C43MFVfmgCR0ev1NIX2ii GTm2wpuMURHEotHkk6tf8wCBrjX+id/Vs2WWB1GcONcSblnNjjF/dagOk9xPgXEOo5KF HErxnLpsm64oIg+9x6Asvr022ZccVlt8zYDj+uT7W8vHonieKo1BObAjqeSA+NknG5ni NxFmmpJT9GiFEoT3FDQzqjvQROajnKnfDReTN0B4dMAgvyzt3g9Ur7sxYkRQeiiwsBw/ hcuQ== X-Gm-Message-State: AOPr4FXnWx7wjsXI62hBn3GwYKI4ovWOyBznizQVQdRml810wGNu1NvAacsH9+x0OHRhmiww1q+WK7e7AorOJQ== X-Received: by 10.31.14.195 with SMTP id 186mr7671048vko.2.1460645270665; Thu, 14 Apr 2016 07:47:50 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/13757 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CALdTKe-3dQWq+8AAm5UEyRdFKYZAE60Jf9RbP1dC+gaaHDd5Dw@mail.gmail.com Approved: robomod@news.nic.it Lines: 49 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 14 Apr 2016 11:47:11 -0300 X-Original-Message-ID: X-Original-References: <20160414135204.GQ2764@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:8429 Hi Piotr, On 14 April 2016 at 10:52, Piotr O=C5=BCarowski wrote: > that's because python-django is using --buildsystem=3Dpybuild in dh; if y= ou add > > export PYBUILD_NAME=3Dbootstrapvz > > it will install .py / egg-info files into python-bootstrapvz binary packa= ge > (please add python-bootstrapvz binary package, BTW) I had made a test with Pybuild, but ended up facing the same problem. Now I see that the problem is that the variable "PYBUILD_NAME" should have a value of "bootstrap-vz" (notice the hyphen), not "boostrapvz". Probably because this has to be consistent with whatever is the package name defined in "setup.py", right? Anyway, if the package is named "python-boostrapvz" it ended up properly packaging the files, but as I've mentioned here a couple times before[1][2], I don't want to call any Python application package as "python-*". bootstrap-vz is a CLI application and should end up in a package named "bootstrap-vz". The problem is that if I do this, I'll and up with an empty binary package package again. Is there a way to tell Pybuild that the Python files should end up in the package "bootstrap-vz" and not "python-bootstrap-vz"? > "usr/lib/python*/dist-packages/bootstrapvz/" in bootstrap-vz.install > doesn't match /usr/lib/python2.7/dist-packages/bootstrap_vz-0.9.5.egg-inf= o, > add this line if you want egg-info to be included: > > /usr/lib/python*/dist-packages/bootstrap_vz-*.egg-info/ If I can fix the package name mentioned above, Pybuild will add the "*.egg-info/" folder as well. Regards, Tiago. [1]: https://lists.debian.org/debian-python/2016/04/msg00017.html [2]: https://lists.debian.org/debian-python/2016/04/msg00027.html --=20 Tiago "Myhro" Ilieve Blog: https://blog.myhro.info/ GitHub: https://github.com/myhro LinkedIn: https://br.linkedin.com/in/myhro Montes Claros - MG, Brasil