Package: xdot Version: 0.4-2 Severity: wishlist Hi,
Currently, XDot is installed as a standalone application. As XDot could be used as a library, it would be nice to install it as a standard Python library. You'll find attached a small patch (debdiff) that does this, by relying on setup.py to install XDot. Thank you in advance. Kind regards, Olivier; -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xdot depends on: ii graphviz 2.26.3-10 ii python 2.7.3~rc2-1 ii python-cairo 1.8.8-1+b2 ii python-gtk2 2.24.0-3 xdot recommends no packages. xdot suggests no packages. -- debconf-show failed
diff -Nru xdot-0.4/debian/changelog xdot-0.4/debian/changelog --- xdot-0.4/debian/changelog 2012-03-10 16:58:11.000000000 +0100 +++ xdot-0.4/debian/changelog 2012-06-29 14:44:08.000000000 +0200 @@ -1,3 +1,11 @@ +xdot (0.4-2.1) unstable; urgency=low + + * Non maintainer upload. + * Rely on distutils to install xdot, to allow library usage from + external applications. + + -- Olivier Tétard <[email protected]> Fri, 29 Jun 2012 14:33:48 +0200 + xdot (0.4-2) unstable; urgency=low * Updated my e-mail address. diff -Nru xdot-0.4/debian/patches/private-modules xdot-0.4/debian/patches/private-modules --- xdot-0.4/debian/patches/private-modules 2011-03-02 14:26:33.000000000 +0100 +++ xdot-0.4/debian/patches/private-modules 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -Description: Private modules - We install into a private namespace, modify the example to mangle sys.path. -Author: Stefano Rivera <[email protected]> -Forwarded: not-needed -Last-Update: 2010-08-30 ---- a/sample.py -+++ b/sample.py -@@ -16,10 +16,13 @@ - # along with this program. If not, see <http://www.gnu.org/licenses/>. - # - -+import sys - - import gtk - import gtk.gdk - -+# On debian, xdot isn't installed in the system namespace: -+sys.path.insert(1, '/usr/share/xdot') - import xdot - - diff -Nru xdot-0.4/debian/patches/series xdot-0.4/debian/patches/series --- xdot-0.4/debian/patches/series 2010-08-30 23:18:36.000000000 +0200 +++ xdot-0.4/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -private-modules diff -Nru xdot-0.4/debian/rules xdot-0.4/debian/rules --- xdot-0.4/debian/rules 2010-08-31 00:09:48.000000000 +0200 +++ xdot-0.4/debian/rules 2012-06-29 14:41:37.000000000 +0200 @@ -1,10 +1,7 @@ #!/usr/bin/make -f %: - dh $@ --with python2 - -override_dh_auto_install: - dh_auto_install -- --install-lib /usr/share/xdot + dh $@ --with python2 --buildsystem=python_distutils override_dh_install: dh_install diff -Nru xdot-0.4/debian/xdot.py xdot-0.4/debian/xdot.py --- xdot-0.4/debian/xdot.py 2010-08-30 23:50:27.000000000 +0200 +++ xdot-0.4/debian/xdot.py 2012-06-29 14:34:48.000000000 +0200 @@ -1,3 +1,5 @@ #!/usr/bin/python -execfile('/usr/share/xdot/xdot.py') +import xdot + +xdot.main()

