Path: csiph.com!news.mixmin.net!aioe.org!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 22:20:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Apr 14 20:18:09 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-1.799 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, 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=vj4u1XuxM297rdXBo6gFHvz/NoapCihquiUiFTySdC4=; b=OfCXTVnwMUlc53RBcnT27ekLHxluvgf8Inr+o8CuofHIqeQqGZn4x0Ys7rlXKNQu76 kS13EXXQUJvWIzMc1MDYNB0liolhYTfQ+YniIjJhqDKBxgUeZ8DHU2WfK2yrNjfsb1yc WmjXg7rLSNpJXFYuwD0kEIqfXqTo+n3jLDcDL+tnhUAk+17y5+fWYTFycqTvfpbhLKOx wlbZ7JBMXemMxabv6PsRUBy1y4OZINfQfYinC3HUW4EEg+VeDD2WbEWC4tARcLdVZw0b 3wLQxUDqrqSDAsRrWDJI9VhXAlhFlTTo8xNeGo6AulMkG0mIqb0eYVJQ9uRlSdoJ+G86 Sidw== 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=vj4u1XuxM297rdXBo6gFHvz/NoapCihquiUiFTySdC4=; b=atf8oFTBOShnAPn9fi9r6iHTlK/FAun/5VANgwEGSA3Ik2yB7CBJps5nYmHuXOs9xX Vs5y+O3TYcvwN/W2heapMdNzctyukDsiel8Urd48lzHkJ7e8JOsIVlkGJOlgpkJgZuyi lbhiiE3+PJShxJWduPwrVU6FHiMW6yP+QixahsU5wpGV5U+KQV0Bydu7Rvc2tuFtgOou /4YRFQXh05ei5tf0U7BsAzLcrqp9xE4+UuhfFr0j/OEXmJHv5KHpFefM9apIpkUezlR7 oGqkoLB4TqLCtFJdghYtBzbbsQ0wzwvpyKC3TwnY49KjEZe6ackX2ARnXLOOS177Z1Km LLuw== X-Gm-Message-State: AOPr4FVpCKmy4nCZjYFlhx4fNaBcpkZQgsCeX3QWQRerYRjWjRTLfVMuHZZf/MzWJsZYYhSJ/SW5sMDd1vmqZw== X-Received: by 10.31.40.10 with SMTP id o10mr8464595vko.9.1460663996668; Thu, 14 Apr 2016 12:59:56 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/13759 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CALdTKe8w04MWkBJCMiLf8_BgCUfk4Nmx7dkJ=2qxmaP1yZ+mLw@mail.gmail.com Approved: robomod@news.nic.it Lines: 57 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 14 Apr 2016 16:59:17 -0300 X-Original-Message-ID: X-Original-References: <20160414135204.GQ2764@sar0.p1otr.com> <20160414153336.GR2764@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:8431 Piotr, On 14 April 2016 at 12:33, Piotr O=C5=BCarowski wrote: > PYBUILD_NAME is used to guess the Debian binary package name (and that's > THE only thing it is used for), whatever is in setup.py doesn't matter. > > If you use PYBUILD_NAME=3Dfoo, it will install into: > > debian/python-foo/ # python2.X and python2.X-dbg > debian/python3-foo/ # python3.X and python3.X-dbg > debian/pypy-foo/ # pypy > > that's all, there's no more magic with PYBUILD_NAME Got it. Thanks for the explanation. > then PLEASE PLEASE PLEASE do not install as public modules - install into > /usr/share/boostrap-vz/ f.e. with this pybuild args: > > export PYBUILD_INSTALL_ARGS=3D--install-lib=3D/usr/share/boostrap-vz/ -= -install-scripts=3D/usr/share/boostrap-vz/ > > and > > /usr/share/boostrap-vz/boostrap-vz /usr/bin/boostrap-vz > /usr/share/boostrap-vz/boostrap-remote /usr/bin/boostrap-remote > /usr/share/boostrap-vz/boostrap-server /usr/bin/boostrap-server > > in debian/boostrap-vz.links > > see PYBUILD_INSTALL_ARGS above (and use PYBUILD_DESTDIR=3Ddebian/bootstra= p-vz/ > instead of PYBUILD_NAME) Ok. As this seems to be considered very wrong, I've separated the package[1], between "bootstrap-vz" and "python-bootstrap-vz". The first one contains binaries/man pages/etc. and the later contains the library with everything packaged by Pybuild. I've tried to use "/usr/share/boostrap-vz" for it, but as it run as root it ends up writing "*.pyc" files in there, resulting in a non-clean package removal. I guess the split between application and library package is a better form of organization. Thanks for your help and your awesome work in Pybuild! Regards, Tiago. [1]: https://anonscm.debian.org/git/cloud/bootstrap-vz.git/commit/?id=3D1c0= 75a7c300fa541abe2ccdcf8c5ab35128f7a76 --=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