--- pyx-0.10.orig/debian/watch +++ pyx-0.10/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://sf.net/pyx/PyX-(.*).tar.gz --- pyx-0.10.orig/debian/python-pyx.preinst +++ pyx-0.10/debian/python-pyx.preinst @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +# TODO: remove this file after releasing Squeeze or python-central is fixed (see #479852) + +# python-pyx versions 0.9-4 to 0.10-0nmu1 used python-central +# python-pyx versions 0.10-0nmu2 and 0.10-0nmu3 use python-support but did +# not guarantee to make pycentral clean up after itself +# python-pyx versions 0.10-1 uses python-support and has this preinst to +# clean up pycentral files. +# +# For lenny->squeeze this script will be enough. For people upgrading +# the 0.10 packages that were in sid but without this script, if python-central +# is still installed (most likely!) then this script will clean things up and +# all is well. For a small number of people who installed the 0.10 packages +# without this package and (auto-)removed python-central, then there is some +# manual clean-up required. + +if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt "0.10-1" +then + if [ -x /usr/bin/pycentral ] + then + pycentral pkgremove python-pyx + fi + # if python-central is around then this should do nothing; if python-central + # has been removed (perhaps auto-removed) when upgrading from 0.10-0nmu{2,3} + # then force the clean-up anyway. + rm -rf /usr/lib/python2.?/site-packages/pyx/ +fi + +#DEBHELPER# --- pyx-0.10.orig/debian/python-pyx-doc.doc-base.examples +++ pyx-0.10/debian/python-pyx-doc.doc-base.examples @@ -0,0 +1,14 @@ +Document: pyx-examples +Title: PyX examples +Author: Jörg Lehmann , + Michael Schindler , + André Wobst +Abstract: Simple examples of the PyX plotting library, illustrating various + aspects of this Python library for plotting scientific data, including: + controlling axes, tick labels, reading data from files, plotting equations, + adding pictures to plots, adding labels and text to plots. +Section: Science/Data Analysis + +Format: Text +Files: /usr/share/doc/python-pyx-doc/examples/* +Index: /usr/share/doc/python-pyx-doc/examples/README --- pyx-0.10.orig/debian/compat +++ pyx-0.10/debian/compat @@ -0,0 +1 @@ +7 --- pyx-0.10.orig/debian/README.source +++ pyx-0.10/debian/README.source @@ -0,0 +1,9 @@ +This package uses quilt to manage Debian-specific changes to the upstream +source. + +Install the "quilt" package and consult: + + /usr/share/doc/quilt/README.source + +for further details. + --- pyx-0.10.orig/debian/copyright +++ pyx-0.10/debian/copyright @@ -0,0 +1,24 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=222 +Upstream-Name: PyX +Upstream-Maintainer: Jörg Lehmann + Michael Schindler + André Wobst +Upstream-Source: http://pyx.sourceforge.net/ + +Files: * +Copyright: © 2002-2007, Jörg Lehmann +Copyright: © 2003-2007, Michael Schindler +Copyright: © 2002-2007, André Wobst +License: GPL-2+ + +Files: debian/* +Copyright: © 2003-2006, Graham Wilson +Copyright: © 2007, Thomas Viehmann +Copyright: © 2007, Ernesto Nadir Crespo Avila +Copyright: © 2009, Stuart Prescott +License: GPL-2+ + +License: GPL-2+ + On Debian systems, the complete text of the GNU General Public License, + can be found in /usr/share/common-licenses/GPL-2. + --- pyx-0.10.orig/debian/python-pyx-doc.examples +++ pyx-0.10/debian/python-pyx-doc.examples @@ -0,0 +1 @@ +examples/* --- pyx-0.10.orig/debian/rules +++ pyx-0.10/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +%: + dh --with quilt $@ + +binary: binary-arch binary-indep + +# build arch-indep files in the binary-indep target to prevent FTBFS on buildd +binary-indep: doc install + dh $@ + +doc: + make -C faq pdf + make -C manual pdf + +override_dh_auto_clean: + make -C faq clean + make -C manual clean + dh_auto_clean + +override_dh_compress: + dh_compress --all -X.pdf + +override_dh_fixperms: + dh_fixperms + find debian/python-pyx-doc/usr/share/doc/python-pyx-doc/examples/ \ + -type f -print0 | \ + xargs -0r chmod 0644 + +.PHONY: install doc binary binary-indep doc override_dh_auto_clean override_dh_compress --- pyx-0.10.orig/debian/python-pyx.docs +++ pyx-0.10/debian/python-pyx.docs @@ -0,0 +1,2 @@ +README +AUTHORS --- pyx-0.10.orig/debian/python-pyx-doc.doc-base.manual +++ pyx-0.10/debian/python-pyx-doc.doc-base.manual @@ -0,0 +1,10 @@ +Document: pyx-manual +Title: PyX Programming Manual +Author: Jörg Lehmann , + André Wobst +Abstract: Programming reference for the PyX plotting library for preparing + scientific plots using Python and LaTeX. +Section: Science/Data Analysis + +Format: PDF +Files: /usr/share/doc/python-pyx-doc/manual.pdf --- pyx-0.10.orig/debian/pyversions +++ pyx-0.10/debian/pyversions @@ -0,0 +1 @@ +2.4- --- pyx-0.10.orig/debian/changelog +++ pyx-0.10/debian/changelog @@ -0,0 +1,242 @@ +pyx (0.10-2build1) natty; urgency=low + + * Rebuild to add support for python 2.7. + + -- Matthias Klose Fri, 03 Dec 2010 00:13:17 +0000 + +pyx (0.10-2) unstable; urgency=low + + * Build-depend on new python-old-doctools package that provides tools + no longer in python 2.6 (closes: #568046). + * Bump standards version to 3.8.4 (no changes required). + + -- Stuart Prescott Wed, 10 Feb 2010 16:06:53 +0000 + +pyx (0.10-1) unstable; urgency=low + + * New maintainer (closes: #552750). + * Revert unneeded versioned build-dependency on python-all-dev. + * Add a preinst script to clean up after python-central (working around + bug #479852 in python-central) (closes: #553271). + * Convert packaging to quilt. + + -- Stuart Prescott Thu, 29 Oct 2009 23:47:39 +0000 + +pyx (0.10-0+nmu3) unstable; urgency=low + + * Non-maintainer upload. + * Build-Depend on python-all-dev (>= 2.5.4) for python.mk. + + -- Kumar Appaiah Mon, 19 Oct 2009 17:21:33 -0500 + +pyx (0.10-0+nmu2) unstable; urgency=low + + * Non-maintainer upload + * Fix build system for compatibility with Python 2.6 (closes: #547872) + - change debhelper compat level to dh7. + - remove unneeded sections of debian/rules. + - remove versioned depends/conflicts/replaces for packages that haven't + existed since Sarge. + * Silence DeprecationWarning output from Python 2.6. + * Move doc package to doc section. + * Add doc-base entries for documentation. + * Bump standards version to 3.8.3 (no changes required). + + -- Stuart Prescott Wed, 30 Sep 2009 01:09:13 +0100 + +pyx (0.10-0+nmu1) unstable; urgency=low + + * Non-maintainer upload + * New upstream release (closes: #454765) + * Update build-deps to use texlive rather than tetex + * Update depends to use texlive rather than tetex (closes: #467207) + * Recommend a smaller latex package to reduce the installation size. + texlive-latex-base seems to be the smallest package that allows at least + the (trivial) examples to be built (closes: #503577) + * Fix copyright file to include names and years of upstream authors + + -- Stuart Prescott Fri, 15 May 2009 00:23:04 +0100 + +pyx (0.9-4) unstable; urgency=low + + * New maintainer (closes: #408140). + + -- Ernesto Nadir Crespo Avila Mon, 29 Jan 2007 21:22:39 -0400 + +pyx (0.9-3) unstable; urgency=low + + * New maintainer. Thank you for more than three years of + maintenance, Graham! Closes: #400087 + * Don't hard-code python 2.3 in manual/Makefile. + Thanks to Matthias Klose for the bug report and patch. + Closes: #392634 + * Remove obsolete dh_python call from debian/rules. + + -- Thomas Viehmann Sun, 26 Nov 2006 14:04:53 +0100 + +pyx (0.9-2) unstable; urgency=low + + * Support the new Python policy. (closes: #373372) + + -- Graham Wilson Thu, 15 Jun 2006 05:53:37 +0000 + +pyx (0.9-1) unstable; urgency=low + + * New upstream release. + * Umm... don't build-depend libkpathsea4-dev. + * Move examples to -doc package, since their number seems to be + growing; they also seem more appropriate in that package. + * Update standards version; no changes. + + * test script changes: + - test files in the gallery directory as well + - make the output less verbose + + -- Graham Wilson Sun, 11 Jun 2006 05:04:08 +0000 + +pyx (0.8.1-2) unstable; urgency=low + + * Rebuild against libkpathsea4. + * Output number of tests that were run. + * Use a variable for the python executable in rules, to make it easier + to build for a different Python version. + + -- Graham Wilson Tue, 28 Feb 2006 08:46:25 +0000 + +pyx (0.8.1-1) unstable; urgency=low + + * New upstream release. + - don't try to build the examples.pdf file anymore + - update siteconfig.py to reflect new variable names + + * Only install .py and .dat files into the examples directory. + * Don't build python2.?-pyx packages, just build for the current python. + * Update the watch file to support uscan's new syntax. + * Updated standards version (no changes). + * Don't build depend on gs, since it isn't needed any longer. + * Don't attempt to support noopt in DEB_BUILD_OPTIONS, since it apparently + hasn't been working for some time. + * Update the FSF's address in the copyright file. + + * Suggest python-imaging. + + * Minor changes to the test script: + - reduce images 4x so they come out the correct size + - copy .jpg files as well as .dat files + - count how many tests failed + - check if SYS_PYX is set, and if so, use the system's copy of PyX + + -- Graham Wilson Sun, 04 Sep 2005 22:34:53 +0000 + +pyx (0.7.1-2) unstable; urgency=low + + * Make python-pyx depend on the same version of python2.x-pyx. + (closes: #287950) + * Build depend on gs-gpl or gs. (closes: #287548) + + -- Graham Wilson Thu, 06 Jan 2005 03:35:40 +0000 + +pyx (0.7.1-1) unstable; urgency=low + + * New upstream bugfix release. + * Strip the shebang-python line from the module so dh_python doesn't + generate dependencies on the python package. Should also stop some + linda warnings. + * In the test script, don't die if one of the programs fails, just move + on to the next test. Also remove the generated EPS file. + * Set build depends indep to packages needed for building the + documentation (tetex-extra and tipa). + + -- Graham Wilson Sat, 25 Dec 2004 06:42:57 +0000 + +pyx (0.7-3) unstable; urgency=low + + * Enable texipc by default in pyxrc. + + -- Graham Wilson Mon, 29 Nov 2004 23:35:22 +0000 + +pyx (0.7-2) experimental; urgency=low + + * Install pyxrc into the -common package. + + -- Graham Wilson Sun, 14 Nov 2004 00:38:29 +0000 + +pyx (0.7-1) experimental; urgency=low + + * New upstream release. (closes: #280861) + + * Build documentaion, since upstream no longer includes it in the + source. + * Build depend on tipa. + * Remove manual/*.png files on clean. + * Call setup.py build_ext, not build. + * Install example files into -common, and add symlinks from the versioned + packages. + * Ensure siteconfig.py points to the correct locations. + * Add the missing INDEX files in the examples subdirectories. + + * Add a test script. + + -- Graham Wilson Sat, 13 Nov 2004 16:57:18 +0000 + +pyx (0.6.3-3) unstable; urgency=low + + * Correct the URL in the watch file. + * Build depend on python. + + -- Graham Wilson Thu, 08 Jul 2004 23:47:56 +0000 + +pyx (0.6.3-2) unstable; urgency=low + + * Call dh_installdocs with -a (not -A) in binary-arch. + * Remove build depends indep, since we don't exactly build anything. + * Build-depend on tetex-bin for kpsewhich. (closes: #248630) + * Recommend tetex-extra. + + -- Graham Wilson Wed, 12 May 2004 20:08:36 +0000 + +pyx (0.6.3-1) unstable; urgency=low + + * The -pyx packages now depend on an explicit version of -common. + * Add a watch file for uscan. + * New upstream release. (closes: #241669) + * Don't build documentation, just install what is distributed. + * Generate list of example files at build time. + + -- Graham Wilson Sun, 02 May 2004 01:59:13 +0000 + +pyx (0.4.1-4) unstable; urgency=low + + * Argh. Only build the manual when building arch-indep packages. + - tetex-extra and gs are now build-depends-indep. + - Hopefully all the autobuilders can build PyX now. + + -- Graham Wilson Wed, 24 Sep 2003 01:54:06 +0000 + +pyx (0.4.1-3) unstable; urgency=low + + * Build depend on tetex-extra. + + -- Graham Wilson Tue, 23 Sep 2003 03:57:03 +0000 + +pyx (0.4.1-2) unstable; urgency=low + + * Set PYTHONPATH correctly when building manual. + + -- Graham Wilson Mon, 22 Sep 2003 18:17:16 +0000 + +pyx (0.4.1-1) unstable; urgency=low + + * Set encoding header in a couple of files to ISO-8859-1. + * New upstream version. + * Build the manual as PDF. Don't compress it. + + -- Graham Wilson Wed, 17 Sep 2003 18:35:07 +0000 + +pyx (0.4-1) unstable; urgency=low + + * Initial Debian release. (closes: #192100) + + -- Graham Wilson Thu, 11 Sep 2003 04:42:57 +0000 + +vim:ts=2:sw=2:et: --- pyx-0.10.orig/debian/control +++ pyx-0.10/debian/control @@ -0,0 +1,39 @@ +Source: pyx +Maintainer: Stuart Prescott +Standards-Version: 3.8.4 +Section: python +Priority: optional +Build-Depends: debhelper (>= 7.3.5), quilt (>= 0.46-7), python-all-dev, libkpathsea-dev, python, python-support +Build-Depends-Indep: python-old-doctools, texlive-latex-extra, texlive-latex-recommended, texlive-fonts-recommended, tipa +XS-Python-Version: all +Homepage: http://pyx.sourceforge.net/ + +Package: python-pyx +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} +Recommends: texlive-latex-base +Suggests: python-pyx-doc, python-imaging, texlive-fonts-recommended +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Description: Python module for generating PostScript graphics + PyX is a Python module for generating encapsulated PostScript figures using + an abstraction of PostScript and TeX. + . + The module provides access to PostScript features such as paths, + line-styles, fill patterns, transformations, and clipping. Geometric + operations on paths such as intersections, transformations, and splitting + are also supported. + . + PyX also allows flexible graph generation with many different graph and + axis styles. + +Package: python-pyx-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Recommends: pdf-viewer +Description: Python module for generating PostScript graphics (documentation) + PyX is a Python module for generating encapsulated PostScript figures using + an abstraction of PostScript and TeX. + . + This package contains the manual for PyX in PDF format and examples. --- pyx-0.10.orig/debian/python-pyx-doc.doc-base.gallery +++ pyx-0.10/debian/python-pyx-doc.doc-base.gallery @@ -0,0 +1,14 @@ +Document: pyx-gallery +Title: PyX gallery +Author: Jörg Lehmann , + Michael Schindler , + André Wobst +Abstract: More complicated or real world examples of the PyX plotting library, + illustrating various aspects of this Python library for plotting scientific + data. The code is designed to be a starting point for your own experiments + with PyX. +Section: Science/Data Analysis + +Format: Text +Files: /usr/share/doc/python-pyx-doc/gallery/* +Index: /usr/share/doc/python-pyx-doc/gallery/README --- pyx-0.10.orig/debian/python-pyx.install +++ pyx-0.10/debian/python-pyx.install @@ -0,0 +1,3 @@ +etc/pyxrc +usr/lib/python*/*-packages/* +usr/share/pyx/* --- pyx-0.10.orig/debian/python-pyx-doc.docs +++ pyx-0.10/debian/python-pyx-doc.docs @@ -0,0 +1,5 @@ +README +AUTHORS +faq/pyxfaq.pdf +manual/manual.pdf +gallery --- pyx-0.10.orig/debian/python-pyx-doc.doc-base.faq +++ pyx-0.10/debian/python-pyx-doc.doc-base.faq @@ -0,0 +1,9 @@ +Document: pyx-faq +Title: Some frequently and not so frequently asked questions about PyX +Author: Gert-Ludwig Ingold +Abstract: FAQ for the PyX plotting library for preparing scientific plots + using Python and LaTeX. +Section: Science/Data Analysis + +Format: PDF +Files: /usr/share/doc/python-pyx-doc/pyxfaq.pdf --- pyx-0.10.orig/debian/test +++ pyx-0.10/debian/test @@ -0,0 +1,92 @@ +#!/usr/bin/python2.3 +# $Id: test 92 2006-06-11 05:12:16Z graham $ +# +# A script for testing all of the example files shipped with PyX. Requires +# Ghostscript and ImageMagick. + +import os.path +import shutil +import sys +import os + +gs_args = ['-r400', '-dQUIET', '-dEPSCrop', '-dNOPAUSE', '-dBATCH', '-sDEVICE=ppmraw'] + +def run_test(interp, file): + """Execute the example code and return the output filename.""" + base, ext = os.path.splitext(file) + base = os.path.basename(base) + print base + ":", + + name = {} + for ft in ('eps', 'ppm', 'png'): + name[ft] = "%s-%s.%s" % (base, interp, ft) + + if os.spawnlpe(os.P_WAIT, interp, interp, file, new_env): + print interp + " FAILED" + return + + if not os.path.exists(base + '.eps'): + print "no EPS file" + return + else: + os.rename(base + '.eps', name['eps']) + + gs_cmd = ['gs'] + gs_args + ['-sOutputFile=' + name['ppm'], name['eps']] + if os.spawnvp(os.P_WAIT, 'gs', gs_cmd): + print "gs FAILED" + return + os.unlink(name['eps']) + + convert_cmd = ['convert', '-resize', '25%', name['ppm'], name['png']] + if os.spawnvp(os.P_WAIT, 'convert', convert_cmd): + print "convert FAILED" + return + os.unlink(name['ppm']) + + print "ok" + return name['png'] + +# Are we in the correct directory? +if not os.path.exists("debian/changelog") or not os.path.exists("examples"): + print "must be in the toplevel directory of the PyX source" + sys.exit(1) + +# Set $PYTHONPATH so that we point to the correct location of the module. +new_env = os.environ.copy() +if not os.environ.has_key("SYS_PYX"): + new_env["PYTHONPATH"] = os.getcwd() + +# Setup a directory for output. +if not os.path.isdir("debian/output"): + os.mkdir("debian/output") + +# Build a list of files to test. +def get_files(dir): + r = [] + for (dirpath, dirnames, filenames) in os.walk(dir): + if ".svn" in dirnames: + dirnames.remove(".svn") + for file in filenames: + full = os.path.join(dirpath, file) + full = os.path.abspath(full) + + if file.endswith(".py"): + r.append(full) + elif file.endswith(".dat") or file.endswith(".jpg"): + # The .dat and .jpg files are used by some of + # the examples. + shutil.copy(full, "debian/output") + return r + +files = get_files("examples") +files += get_files("gallery") + +os.chdir("debian/output") +tests = 0 +failed = 0 +for file in files: + tests += 1 + if not run_test("python", file): + failed += 1 + +print tests, "tests,", failed, "FAILED" --- pyx-0.10.orig/debian/patches/manual-mkhowto.patch +++ pyx-0.10/debian/patches/manual-mkhowto.patch @@ -0,0 +1,34 @@ +Include mkhowto in the local directory for building documentation +--- a/manual/Makefile ++++ b/manual/Makefile +@@ -10,7 +10,7 @@ + default: dvi + + clean: +- -rm -fr manual.dvi *.eps *.pdf *.aux *.out *.toc *.log manual ++ -rm -fr manual.dvi *.eps *.pdf *.aux *.out *.toc *.log manual mkhowto + + all: + make clean +@@ -24,15 +24,18 @@ + pdf: manual.pdf + html: manual/manual.html + +-manual.pdf: $(src) pdf_figs ++mkhowto: ++ ln -s /usr/lib/python2.5/doc/tools/mkhowto ++ ++manual.pdf: $(src) pdf_figs mkhowto + #for index-with-own-hyperrefs debugging, anybody interested? + #./mkhowto --a4 --pdf --keep manual.tex + ./mkhowto --a4 --pdf manual.tex + +-manual.dvi: $(src) eps_figs ++manual.dvi: $(src) eps_figs mkhowto + ./mkhowto --a4 --dvi manual.tex + +-manual/manual.html: $(src) eps_figs ++manual/manual.html: $(src) eps_figs mkhowto + ./mkhowto --image-type png --favicon "/pyx.ico" \ + --up-link "/" --up-title "PyX homepage" \ + --html manual.tex --- pyx-0.10.orig/debian/patches/manual-latex-define.patch +++ pyx-0.10/debian/patches/manual-latex-define.patch @@ -0,0 +1,12 @@ +Fix manual latex source to define \e macro correctly. +--- pyx-0.10.orig/manual/graph.tex ++++ pyx-0.10/manual/graph.tex +@@ -1,6 +1,8 @@ + \chapter{Graphs} + \label{graph} + ++\let\e=\textbackslash ++ + \section{Introduction} % {{{ + \PyX{} can be used for data and function plotting. At present + x-y-graphs and x-y-z-graphs are supported only. However, the component --- pyx-0.10.orig/debian/patches/setup.cfg.patch +++ pyx-0.10/debian/patches/setup.cfg.patch @@ -0,0 +1,17 @@ +Include C extensions when building. +--- pyx-0.10.orig/setup.cfg ++++ pyx-0.10/setup.cfg +@@ -2,11 +2,11 @@ + # In this section you can specify which c extension modules should be built + + # C extension module for fast t1font decoding and encoding +-build_t1code=0 ++build_t1code=1 + + # Python bindings for the kpathsea library. You need the kpathsea header + # and library and you may need to specify their location below. +-build_pykpathsea=0 ++build_pykpathsea=1 + + [build_ext] + # additional include and library directories: --- pyx-0.10.orig/debian/patches/pyxrc.patch +++ pyx-0.10/debian/patches/pyxrc.patch @@ -0,0 +1,10 @@ +Configure pyx to use the texipc system for extracting DVIs +--- pyx-0.10.orig/pyxrc ++++ pyx-0.10/pyxrc +@@ -32,5 +32,5 @@ + # You will gain immediate access to the dvi-output of TeX by that, + # which will substantially improve the performance of certain + # operations (e.g. the usage of PyX markers). +-texipc = 0 ++texipc = 1 + --- pyx-0.10.orig/debian/patches/series +++ pyx-0.10/debian/patches/series @@ -0,0 +1,6 @@ +setup.cfg.patch +pyxrc.patch +siteconfig-static.patch +pyx-text-warnings26.patch +manual-latex-define.patch +manual-mkhowto.patch --- pyx-0.10.orig/debian/patches/siteconfig-static.patch +++ pyx-0.10/debian/patches/siteconfig-static.patch @@ -0,0 +1,40 @@ +Set correct paths in siteconfig.py +--- trunk.orig/setup.py ++++ trunk/setup.py +@@ -94,19 +94,14 @@ + if log: + log.info("creating proper %s" % outfile) + +- # create the additional relative path parts to be inserted into the +- # os.path.join methods in the original siteconfig.py +- indir = os.path.dirname(module_file) +- addjoinstring = ", ".join(["'..'" for d in outdir.split(os.path.sep)] + +- ["'%s'" % d for d in indir.split(os.path.sep)]) + +- # write a modifed version of siteconfig.py +- fin = open(module_file, "r") ++ # create a static siteconfig.py for debian + fout = open(outfile, "w") +- for line in fin.readlines(): +- fout.write(line.replace("os.path.join(os.path.dirname(__file__), ", +- "os.path.join(os.path.dirname(__file__), %s, " % addjoinstring)) +- fin.close() ++ fout.write("\n".join([ ++ "lfsdir = '/usr/share/pyx'", ++ "sharedir = '/usr/share/pyx'", ++ "pyxrcdir = '/etc'" ++ ])) + fout.close() + else: + return build_py.build_module(self, module, module_file, package) +@@ -123,9 +118,7 @@ + # (the following four lines are copied from within the install_data.run loop) + dir = convert_path(dir) + if not os.path.isabs(dir): +- dir = os.path.join(self.install_dir, dir) +- elif self.root: +- dir = change_root(self.root, dir) ++ dir = os.path.join("/usr", dir) + + self.siteconfiglines.append("%s = '%s'\n" % (siteconfignames[files], dir)) + --- pyx-0.10.orig/debian/patches/pyx-text-warnings26.patch +++ pyx-0.10/debian/patches/pyx-text-warnings26.patch @@ -0,0 +1,14 @@ +Silence DeprecationWarning output from Python 2.6. +--- pyx-0.10.orig/pyx/text.py ++++ pyx-0.10/pyx/text.py +@@ -25,6 +25,10 @@ + import config, siteconfig, unit, box, canvas, trafo, version, attr, style, dvifile + import bbox as bboxmodule + ++# Suppress this python 2.6 warning ++import warnings ++warnings.filterwarnings("ignore", r".*popen.*", DeprecationWarning, "pyx\.text") ++ + ############################################################################### + # texmessages + # - please don't get confused: