Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: Properly splitting Python "-doc" packages Date: Thu, 14 Apr 2016 23:30:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Apr 14 21:29:18 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.479 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.199, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham 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=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XQo1VcLm9e5e9jpNyhY0VWW8MfhmqWULGFlgoQHdXkQ=; b=Lk4KHGB9NzpBwOH+i+/V6O3xiVvFxyyl8BiIMJIN3cqb4gmV04QgPhP8RyYXW9aYZh 4ke10Yp4O9xJri3u/onjHpn16UKaGG1yAKnJvRH/e3uci73cQoGdKM0LFrfc7BYAcCWC +ByGyNo5vWYXy1Q1nJbrkzA0mf3qFY3bRG8JB75shA6YwFoDfAT5TAdKhhgD1Uh+ug6d 2/RWQM+z5FWAmtVzEmJZNgz4ljLr+fDTyCA8C4tzrNs7jVDzO+l8NCgSRIecmn0xc6qy gCLWOwrF+BhjhDcjQKIgK0b9oWSgwgWitltpOEeQRDY/ZEBBTG1Bh5UPifB+WyIqJTAR DEqQ== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=XQo1VcLm9e5e9jpNyhY0VWW8MfhmqWULGFlgoQHdXkQ=; b=MyXBHLLGe2I71HZgQY74NUzYFLbK/Dmsvd3dRqMagDB7kvnYJ1HKYFWWMAfOb4aKhF n2or3ZaKEkFtpI/q1Njd8lhCDGrMP4KiUBRKkZenXXkQghGrpDNDPDNd6StqpYDlWh/u gTcnuo4n5j5RwMWa5PLa8XqLLY+EYWXAVJgkZHnHHqzdXWoawKxnpIgk0Iprap+CLTAr xkR9INYl4+a5Uhm6XdkfVPtxGMiwjx8Dem6wQWsWmcd+PmEhUCxl6yNz2p0NinLo3wGZ O7VXhvJa03Heig5SmvlXvAIInBbvwcxk95EspNK9ZTJY0zhClLv4UlUq0I/QMC5K/I/J HZ1Q== X-Gm-Message-State: AOPr4FUgRRwHXNnCnKHjrS3aeSCnVnidcVMK5NIWthx8Jh129lN0rdwqOkH+t1r3q4FsTw== X-Received: by 10.25.4.202 with SMTP id 193mr7601758lfe.49.1460669342775; Thu, 14 Apr 2016 14:29:02 -0700 (PDT) Sender: robomod@news.nic.it Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1sNVjLsmu1MXqwQ/" Content-Disposition: inline X-Operating-System: Debian GNU/Linux (4.5.0-rc7-amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Mailing-List: archive/latest/13760 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160414212858.GC31646@p1otr.com Approved: robomod@news.nic.it Lines: 178 Organization: linux.* mail to news gateway X-Original-Date: Thu, 14 Apr 2016 23:28:58 +0200 X-Original-Message-ID: <20160414212858.GC31646@p1otr.com> X-Original-References: <20160414135204.GQ2764@sar0.p1otr.com> <20160414153336.GR2764@sar0.p1otr.com> X-Original-Sender: =?UTF-8?Q?Piotr_O=C5=BCarowski?= Xref: csiph.com linux.debian.maint.python:8432 --1sNVjLsmu1MXqwQ/ Content-Type: multipart/mixed; boundary="2JFBq9zoW8cOFH7v" Content-Disposition: inline --2JFBq9zoW8cOFH7v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Tiago Ilieve, 2016-04-14] > > then PLEASE PLEASE PLEASE do not install as public modules - install in= to > > /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/bootst= rap-vz/ > > instead of PYBUILD_NAME) >=20 > Ok. As this seems to be considered very wrong, I've separated the > package[1], between "bootstrap-vz" and "python-bootstrap-vz". The if you decide to go this way, please use python-bootstrapvz, not python-bootstrap-vz (module name is bootstrapvz, not bootstrap-vz) > first one contains binaries/man pages/etc. and the later contains the > library with everything packaged by Pybuild. >=20 > 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 I copy-pasted your typo in package name so dh_python2 didn't find the right directory and didn't do its job. See attached patch (now it uses private dir) --=20 Piotr O=C5=BCarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 --2JFBq9zoW8cOFH7v Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="bootstrap-vz.patch" Content-Transfer-Encoding: quoted-printable diff --git a/debian/bootstrap-vz.links b/debian/bootstrap-vz.links index 06894e2..fb6b9c0 100644 --- a/debian/bootstrap-vz.links +++ b/debian/bootstrap-vz.links @@ -1 +1,4 @@ usr/share/man/man1/bootstrap-vz-remote.1.gz usr/share/man/man1/bootstrap-v= z-server.1.gz +/usr/share/bootstrap-vz/bootstrap-vz /usr/bin/bootstrap-vz +/usr/share/bootstrap-vz/bootstrap-vz-remote /usr/bin/bootstrap-vz-remote +/usr/share/bootstrap-vz/bootstrap-vz-server /usr/bin/bootstrap-vz-server diff --git a/debian/control b/debian/control index 19a5392..cdcdd83 100644 --- a/debian/control +++ b/debian/control @@ -15,25 +15,10 @@ Homepage: https://github.com/andsens/bootstrap-vz Vcs-Git: https://anonscm.debian.org/git/cloud/bootstrap-vz.git Vcs-Browser: https://anonscm.debian.org/git/cloud/bootstrap-vz.git =20 -Package: python-bootstrap-vz -Architecture: all -Depends: ${misc:Depends}, - ${python:Depends} -Breaks: bootstrap-vz (<< 0.9.10) -Replaces: bootstrap-vz (<< 0.9.10) -Description: Tool for creating Debian images for cloud platforms (Library) - It's a software for creating Debian images to run on public or private cl= ouds - (Amazon, Google, OpenStack, Eucaliptus, etc). - It's using bootstraping as a method for creating images. Images created b= y this - tool are fully operational Debian Images for Cloud. - . - This package contains the Python library. - Package: bootstrap-vz Section: admin Architecture: all Depends: debootstrap, - python-bootstrap-vz (=3D ${binary:Version}), ${misc:Depends}, ${python:Depends} Recommends: qemu-utils @@ -44,20 +29,18 @@ Suggests: bootstrap-vz-doc, virtualbox-guest-additions-iso, wget, zerofree -Description: Tool for creating Debian images for cloud platforms (CLI) +Description: tool for creating Debian images for cloud platforms (CLI) It's a software for creating Debian images to run on public or private cl= ouds (Amazon, Google, OpenStack, Eucaliptus, etc). It's using bootstraping as a method for creating images. Images created b= y this tool are fully operational Debian Images for Cloud. - . - This package contains the command-line binaries. =20 Package: bootstrap-vz-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${sphinxdoc:Depends} -Description: Tool for creating Debian images for cloud platforms (Docs) +Description: tool for creating Debian images for cloud platforms (Docs) It's a software for creating Debian images to run on public or private cl= ouds (Amazon, Google, OpenStack, Eucaliptus, etc). It's using bootstraping as a method for creating images. Images created b= y this diff --git a/debian/rules b/debian/rules index 4d59a15..37d6146 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,8 @@ #!/usr/bin/make -f #export DH_VERBOSE=3D1 =20 -export PYBUILD_NAME=3Dbootstrap-vz +export PYBUILD_DESTDIR=3Ddebian/bootstrap-vz +export PYBUILD_INSTALL_ARGS=3D--install-lib=3D/usr/share/bootstrap-vz/ --i= nstall-scripts=3D/usr/share/bootstrap-vz/ =20 %: dh $@ --with python2,sphinxdoc --buildsystem=3Dpybuild @@ -27,11 +28,5 @@ override_dh_compress: dh_compress --exclude "bootstrap-vz-doc/html/" =20 =20 -override_dh_install: - dh_install - # Remove entry point scripts from the library package - rm debian/python-bootstrap-vz/usr/bin/* - - override_dh_installchangelogs: dh_installchangelogs CHANGELOG.rst --2JFBq9zoW8cOFH7v-- --1sNVjLsmu1MXqwQ/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXEAuaAAoJEK728aKnRXZFKqQP/3FPVQjBDMyjy0EG1aAHWx+K U7lWYFMiDQluwCCodW318A8Z9MtWK1FTFZpQU+VnDHL8CWwYmJii7JYs/cAkx8EC DAy/eplGQLbMECL8Qodt3NVkSzsLU8jrY95YvzDZwg6DDoh5tubbITaK5LPjiFTX sSXiQprDzmBprEBfz+7K2a2nA0Z7Rowzz8hvhhEiK2y8ZvOyYx8gdmXgj3F0Rwwy NmtI40iIrnnfeozcn23efZIkVgStdTeoETq4gH7sNhcPtVvrmx5WjLoqO/kFaqZm xyEqV7KumnL00XJr8XTbCHf98q/emtGTomufGLXOwAlRVtN+Px82gMj9K1jLBYh5 E4YSqoTsA6iBfF9BqtvhDSeh1SUAOJAfZY99p1Bt8/R5qB0dy9d9LJx3/0WiTeQz iHhgFBl5l4yev4p9Rl8dS3iV3h9dqLvhUsOOBKQNwyL7xomoy8Diewk3AquaJ/mD FDWQ7kFxZr695j80pLtj8DUDcepDSWECuRSAkpTVMOs+NZC6enAsCXT0CGmKqrnt jLWAoZRLb4PivRBLZ9u/cMffnWgvHzOCz24QnsMXOHWj56zXAj/+jDccg7/R+mwN T121ELHfugvNX/tWMTn8Kf9uOzOVl+9Uyz409BY0c67R4jusGQRICeff6K1hjBgn OKlyENmoUxrSfsqJ0QXz =JUpf -----END PGP SIGNATURE----- --1sNVjLsmu1MXqwQ/--