Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Tiago Ilieve Newsgroups: linux.debian.maint.python Subject: Properly splitting Python "-doc" packages Date: Thu, 14 Apr 2016 15:20:02 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Apr 14 13:18:09 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-1.699 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, FOURLA=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:from:date:message-id:subject:to; bh=s/KSYyRFaE6VKHqpPROBEq90nTaZ8hQ4lCdzbKTQkuI=; b=F09vrDE2Q6MuRYbCNvyeWM0CAQBPd4i7LthRkTpEw5IrFM8Ei6MNGx/qK3PukbrUcR t6qvXJ+XPRY8ttd5qLR/vuel09p8E7et34KNZY6sTWsR5hVQaRR4ZUL4+8bcSxbDx13S 440s2TBJ5LZUk1MTrS8N6w+/zW6QojLIbSDfEnIwhpCw70EMm0pnWd6fFNG1v4ydn6Gz egL8F3YPrXs6pPXKgjObSoit6iLRUtAwU+M0aLCFuOwg2arhM0ra5Ynx8U5raqhd/VmQ 6rwvwUK+tTP7tta8OhYUGRRmAUQBSHI1PnVfNwBv/QchF3ZzfUDBoSwxHHFXk3HRtVn6 /VcA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=s/KSYyRFaE6VKHqpPROBEq90nTaZ8hQ4lCdzbKTQkuI=; b=Ry0bJdm5VTBzXMQ7O099WutQ8zwzPne6J6aRH0ro1HBxaGHoyRTNFn7AWrfSegdA2N UnpewKoIrj4fKQcccgg3R/Ws5FqaeW2hgE2Lux9bsOG8+o+hPbAIidv6dxSyK0t7g1wm u3KY0pTP+jpXhA8zUb6i+ACIsjA3AhpGpnludCAuF8SXmX2IR4YOnkcrYwEBmS9CfHD3 hLo6jhQ3ypOrV4K1DuY9LoA3tP8anKcC4TBtZD08c/5uxeyIlyNgLflGVfjDwdRrDDf7 Gt9uTUBCECCn7w8BWPsFx5D41QB4wsg98WRzO2NVcm7Ir1YkPbShMypWJ7Q7w9CT0PJl RS0g== X-Gm-Message-State: AOPr4FUlR/DTU2L+QgpepNwY6mFt4r0pcjARgQ+BlYqQgMfwqI+LzTp+pQBmUrpL+NKSJL4Mi++enCUVQX/jkg== X-Received: by 10.159.39.97 with SMTP id a88mr7777142uaa.133.1460638859375; Thu, 14 Apr 2016 06:00:59 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Mailing-List: archive/latest/13755 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CALdTKe_eAJ+5WL5Spmjo87JMPQgFsjyZpC3eT881W+nFznYxBQ@mail.gmail.com Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 14 Apr 2016 10:00:20 -0300 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:8427 Hi, I was working on the "boostrap-vz" package and noticed something really annoying when creating a "boostrap-vz-doc"[1] binary package with its Sphinx documentation: the actual Python files that composes the application weren't being packaged on the main "boostrap-vz" one. I had to add "usr/lib/python*/dist-packages/bootstrapvz/" to its "debian/boostrap-vz.install"[2] to fix this, but I feel this is wrong. Looking at other Python packages that have separate "-doc" packages, like "python-django", they don't seem to need this. Also, its "*.egg-info/" folder also went missing, as we can see with "debdiff": Files in first .deb but not in second ------------------------------------- -rw-r--r-- root/root /usr/lib/python2.7/dist-packages/bootstrap_vz-0.9.5.egg-info/PKG-INFO -rw-r--r-- root/root /usr/lib/python2.7/dist-packages/bootstrap_vz-0.9.5.egg-info/dependency_links.txt -rw-r--r-- root/root /usr/lib/python2.7/dist-packages/bootstrap_vz-0.9.5.egg-info/entry_points.txt -rw-r--r-- root/root /usr/lib/python2.7/dist-packages/bootstrap_vz-0.9.5.egg-info/requires.txt -rw-r--r-- root/root /usr/lib/python2.7/dist-packages/bootstrap_vz-0.9.5.egg-info/top_level.txt This broke its entry point scripts (at least I finally find out the cause of the "pkg_resources.DistributionNotFound" error), so I had to either add custom ones[3] or add "usr/lib/python2.7/dist-packages/bootstrap_vz-*.egg-info/" to its "debian/boostrap-vz.install" file as well. Any ideas on what I missed here? Regards, Tiago. [1]: https://anonscm.debian.org/git/cloud/bootstrap-vz.git/commit/?id=899e841f89d17418de77e5d7f56ff48627415e79 [2]: https://anonscm.debian.org/git/cloud/bootstrap-vz.git/commit/?id=7d0cf538f8e806f83529b3b7cad9af3ee93cca42 [3]: https://anonscm.debian.org/git/cloud/bootstrap-vz.git/commit/?id=d8ec5b17af1f96d9b1221963abf5abc3ef087900 -- Tiago "Myhro" Ilieve Blog: https://blog.myhro.info/ GitHub: https://github.com/myhro LinkedIn: https://br.linkedin.com/in/myhro Montes Claros - MG, Brasil