[Python-modules-commits] r16776 - in packages/pubtal/trunk/debian (pubtal.links rules)
rodrigo at users.alioth.debian.org
rodrigo at users.alioth.debian.org
Tue Apr 26 05:35:36 UTC 2011
Date: Tuesday, April 26, 2011 @ 05:35:23
Author: rodrigo
Revision: 16776
Install pubtal modules as private, as required by python policy for an application.
Modified:
packages/pubtal/trunk/debian/pubtal.links
packages/pubtal/trunk/debian/rules
Modified: packages/pubtal/trunk/debian/pubtal.links
===================================================================
--- packages/pubtal/trunk/debian/pubtal.links 2011-04-26 05:19:26 UTC (rev 16775)
+++ packages/pubtal/trunk/debian/pubtal.links 2011-04-26 05:35:23 UTC (rev 16776)
@@ -1 +1,3 @@
/usr/share/man/man1/updateSite.1.gz /usr/share/man/man1/uploadSite.1.gz
+/usr/share/pubtal/updateSite /usr/bin/updateSite
+/usr/share/pubtal/uploadSite /usr/bin/uploadSite
Modified: packages/pubtal/trunk/debian/rules
===================================================================
--- packages/pubtal/trunk/debian/rules 2011-04-26 05:19:26 UTC (rev 16775)
+++ packages/pubtal/trunk/debian/rules 2011-04-26 05:35:23 UTC (rev 16776)
@@ -44,16 +44,19 @@
dh_installdirs
python setup.py install --no-compile --root=$(CURDIR)/debian/pubtal \
- $(py_setup_install_args)
- find $(CURDIR)/debian/pubtal/usr/lib -type d -name plugins \
- | xargs cp -r optional-plugins/*
- mv $(CURDIR)/debian/pubtal/usr/bin/updateSite.py \
- $(CURDIR)/debian/pubtal/usr/bin/updateSite
- mv $(CURDIR)/debian/pubtal/usr/bin/uploadSite.py \
- $(CURDIR)/debian/pubtal/usr/bin/uploadSite
+ $(py_setup_install_args) --install-lib=/usr/share/pubtal \
+ --install-scripts=/usr/share/pubtal
+ # Install all optional plugins too.
+ cp -r optional-plugins/* $(CURDIR)/debian/pubtal/usr/share/pubtal/pubtal/plugins
+ # Executables in Debian do not have extensions
+ mv $(CURDIR)/debian/pubtal/usr/share/pubtal/updateSite.py \
+ $(CURDIR)/debian/pubtal/usr/share/pubtal/updateSite
+ mv $(CURDIR)/debian/pubtal/usr/share/pubtal/uploadSite.py \
+ $(CURDIR)/debian/pubtal/usr/share/pubtal/uploadSite
+
# Fix wrong execute permissions
- find $(CURDIR)/debian/pubtal/usr/lib/ -name \*.py -exec chmod a-x {} \;
+ find $(CURDIR)/debian/pubtal/usr/share/pubtal -name \*.py -exec chmod a-x {} \;
# Build architecture-independent files here.
binary-indep: build install
More information about the Python-modules-commits
mailing list