[Tiago Ilieve, 2016-04-14] > > 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=--install-lib=/usr/share/boostrap-vz/ --install-scripts=/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=debian/bootstrap-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 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. > > 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) -- Piotr Ożarowski 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
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-vz-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
-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 clouds
- (Amazon, Google, OpenStack, Eucaliptus, etc).
- It's using bootstraping as a method for creating images. Images created by 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 (= ${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 clouds
(Amazon, Google, OpenStack, Eucaliptus, etc).
It's using bootstraping as a method for creating images. Images created by this
tool are fully operational Debian Images for Cloud.
- .
- This package contains the command-line binaries.
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 clouds
(Amazon, Google, OpenStack, Eucaliptus, etc).
It's using bootstraping as a method for creating images. Images created by 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=1
-export PYBUILD_NAME=bootstrap-vz
+export PYBUILD_DESTDIR=debian/bootstrap-vz
+export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/bootstrap-vz/ --install-scripts=/usr/share/bootstrap-vz/
%:
dh $@ --with python2,sphinxdoc --buildsystem=pybuild
@@ -27,11 +28,5 @@ override_dh_compress:
dh_compress --exclude "bootstrap-vz-doc/html/"
-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
Attachment:
signature.asc
Description: PGP signature