[Python-modules-commits] r3908 - in packages/enthought-traits/trunk/debian (5 files)

varun-guest at users.alioth.debian.org varun-guest at users.alioth.debian.org
Sat Dec 8 10:42:08 UTC 2007


    Date: Saturday, December 8, 2007 @ 10:42:07
  Author: varun-guest
Revision: 3908

* Fix install: use setup files.
* Install examples and docs

Added:
  packages/enthought-traits/trunk/debian/docs
  packages/enthought-traits/trunk/debian/examples
Modified:
  packages/enthought-traits/trunk/debian/changelog
  packages/enthought-traits/trunk/debian/control
  packages/enthought-traits/trunk/debian/rules

Modified: packages/enthought-traits/trunk/debian/changelog
===================================================================
--- packages/enthought-traits/trunk/debian/changelog	2007-12-07 23:14:01 UTC (rev 3907)
+++ packages/enthought-traits/trunk/debian/changelog	2007-12-08 10:42:07 UTC (rev 3908)
@@ -1,9 +1,12 @@
-enthought-traits (2.0.1b1-2) UNRELEASED; urgency=low
+enthought-traits (2.0.1b1-2) unstable; urgency=low
 
   * Rename the source and binary packages.
-  * debian/rules: add clean target
+  * debian/rules:
+    + add clean target
+    + install using setup files.
+  * Install examples and docs.
 
- -- Varun Hiremath <varunhiremath at gmail.com>  Sun, 02 Dec 2007 22:59:17 +0530
+ -- Varun Hiremath <varunhiremath at gmail.com>  Sat, 08 Dec 2007 00:14:12 +0530
 
 traits (2.0.1b1-1) UNRELEASED; urgency=low
 

Modified: packages/enthought-traits/trunk/debian/control
===================================================================
--- packages/enthought-traits/trunk/debian/control	2007-12-07 23:14:01 UTC (rev 3907)
+++ packages/enthought-traits/trunk/debian/control	2007-12-08 10:42:07 UTC (rev 3908)
@@ -3,9 +3,8 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Ondrej Certik <ondrej at certik.cz>, Varun Hiremath <varunhiremath at gmail.com>
-Build-Depends: cdbs (>=0.4.41), debhelper (>= 5), python-all-dev
- (>=2.3.5-11), python-central (>= 0.5), python-setuptools (>= 0.6c6-1)
-Standards-Version: 3.7.2
+Build-Depends: cdbs, debhelper (>= 5), python-all-dev, python-central, python-setuptools
+Standards-Version: 3.7.3
 Homepage: http://code.enthought.com/traits/
 XS-Python-Version: >=2.4
 Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/enthought-traits/trunk

Added: packages/enthought-traits/trunk/debian/docs
===================================================================
--- packages/enthought-traits/trunk/debian/docs	                        (rev 0)
+++ packages/enthought-traits/trunk/debian/docs	2007-12-08 10:42:07 UTC (rev 3908)
@@ -0,0 +1 @@
+enthought.traits/docs/*.pdf

Added: packages/enthought-traits/trunk/debian/examples
===================================================================
--- packages/enthought-traits/trunk/debian/examples	                        (rev 0)
+++ packages/enthought-traits/trunk/debian/examples	2007-12-08 10:42:07 UTC (rev 3908)
@@ -0,0 +1 @@
+enthought.traits/examples/*

Modified: packages/enthought-traits/trunk/debian/rules
===================================================================
--- packages/enthought-traits/trunk/debian/rules	2007-12-07 23:14:01 UTC (rev 3907)
+++ packages/enthought-traits/trunk/debian/rules	2007-12-08 10:42:07 UTC (rev 3908)
@@ -6,18 +6,28 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 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/python-enthought-traits/site-packages
+
 python-build-stamp-%:
 	-./build.sh
 
-SITE_PACKAGES=$(DEB_DESTDIR)/usr/share/pycentral/python-enthought-traits/site-packages
-
 clean::
 	find -type d | grep build$ | xargs $(RM) -r
 
 python-install-%:
-	mkdir -p $(SITE_PACKAGES)
-	cp -r build/enthought $(SITE_PACKAGES)
+	for file in $(CURDIR)/*/setup.py; do \
+	  DIR=`dirname $$file`; \
+	  cd $$DIR && python$* setup.py install --root $(DEB_DESTDIR); \
+	done;
 
+binary-predeb/python-enthought-traits::
+	find $(SITE_PACKAGES) -type f | grep nspkg.pth$ | xargs $(RM)
+	touch $(SITE_PACKAGES)/enthought/__init__.py
+	touch $(SITE_PACKAGES)/enthought/traits/__init__.py
+	touch $(SITE_PACKAGES)/enthought/traits/ui/__init__.py
+
 get-orig-source:
 	wget http://code.enthought.com/downloads/source/ets2.6/enthought.traits.tar.gz -O \
 		traits_$(DEB_UPSTREAM_VERSION).orig.tar.gz




More information about the Python-modules-commits mailing list