[Python-apps-commits] r400 - in packages/mayavi2/trunk/debian (examples install rules)
varun-guest at users.alioth.debian.org
varun-guest at users.alioth.debian.org
Fri Dec 7 17:37:57 UTC 2007
Date: Friday, December 7, 2007 @ 17:37:56
Author: varun-guest
Revision: 400
* Install tvtk examples also.
* Some minor fixes.
Added:
packages/mayavi2/trunk/debian/install
Modified:
packages/mayavi2/trunk/debian/rules
Deleted:
packages/mayavi2/trunk/debian/examples
Deleted: packages/mayavi2/trunk/debian/examples
===================================================================
--- packages/mayavi2/trunk/debian/examples 2007-12-07 17:19:55 UTC (rev 399)
+++ packages/mayavi2/trunk/debian/examples 2007-12-07 17:37:56 UTC (rev 400)
@@ -1 +0,0 @@
-enthought.mayavi/examples/*
Added: packages/mayavi2/trunk/debian/install
===================================================================
--- packages/mayavi2/trunk/debian/install (rev 0)
+++ packages/mayavi2/trunk/debian/install 2007-12-07 17:37:56 UTC (rev 400)
@@ -0,0 +1,2 @@
+enthought.mayavi/examples/* /usr/share/doc/mayavi2/examples/mayavi/
+enthought.tvtk/examples/* /usr/share/doc/mayavi2/examples/tvtk/
Modified: packages/mayavi2/trunk/debian/rules
===================================================================
--- packages/mayavi2/trunk/debian/rules 2007-12-07 17:19:55 UTC (rev 399)
+++ packages/mayavi2/trunk/debian/rules 2007-12-07 17:37:56 UTC (rev 400)
@@ -7,6 +7,7 @@
include /usr/share/cdbs/1/class/python-distutils.mk
DEB_COMPRESS_EXCLUDE := .py
+DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
SITE_PACKAGES=$(DEB_DESTDIR)usr/share/pycentral/mayavi2/site-packages
python-build-stamp-%:
@@ -18,15 +19,17 @@
python-install-%:
for file in $(CURDIR)/*/setup.py; do \
DIR=`dirname $$file`; \
- cd $$DIR && python setup.py install --root $(CURDIR)/debian/mayavi2; \
+ cd $$DIR && python$* setup.py install --root $(CURDIR)/debian/mayavi2; \
done;
mkdir -p $(DEB_DESTDIR)usr/bin
$(RM) $(DEB_DESTDIR)usr/bin/mayavi2
ln -s /usr/lib/python2.4/site-packages/enthought/mayavi/scripts/mayavi2 $(DEB_DESTDIR)usr/bin/mayavi2
binary-predeb/mayavi2::
+ find $(SITE_PACKAGES) -type f | grep nspkg.pth$ | xargs $(RM)
sed -i '/^#!/d' $(SITE_PACKAGES)/enthought/tvtk/setup.py
sed -i '/^#!/d' $(SITE_PACKAGES)/enthought/mayavi/scripts/mayavi2.py
+ touch $(SITE_PACKAGES)/enthought/plugins/__init__.py
$(RM) $(DEB_DESTDIR)usr/share/doc/mayavi2/mayavi2.man*
get-orig-source:
More information about the Python-apps-commits
mailing list