~ubuntu-branches/ubuntu/quantal/gutenprint/quantal

« back to all changes in this revision

Viewing changes to debian/local/pyppd/README.txt

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2010-09-21 20:45:03 UTC
  • Revision ID: james.westby@ubuntu.com-20100921204503-qvdkvkz6obg3mklj
Tags: 5.2.6-0ubuntu6
debian/local/pyppd/pyppd/: Updated to pyppd 0.4.9, to suppress runtime
error tracebacks by putting a "try: ... except ...: pass" construct around
the main function call. This avoids SIGPIPE crashes when the execution of
the self-extracting compressed PPD file archives gets stopped by the
calling process (LP: #618017).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
To install ``pyppd``, you can use:
11
11
 
12
 
  pip install pyppd
 
12
  # pip install pyppd
13
13
 
14
14
Or download the source package, uncompress, and run as root:
15
15
 
16
 
  python setup.py install
 
16
  # python setup.py install
17
17
 
18
18
It depends on Python 2.x (http://www.python.org) and XZ Utils
19
19
(http://tukaani.org/xz/).
25
25
be gzipped) you want to add in the archive inside a single folder (which can
26
26
have subfolders), then run:
27
27
 
28
 
  pyppd /path/to/your/ppd/folder
 
28
  $ pyppd /path/to/your/ppd/folder
29
29
 
30
30
It'll create ``pyppd-ppdfile`` in your current folder. You can test it by
31
31
running:
32
32
 
33
 
  ./pyppd-ppdfile list
 
33
  $ ./pyppd-ppdfile list
34
34
 
35
35
And, for reading a PPD from the archive, simply do:
36
36
 
37
 
  ./pyppd-ppdfile cat pyppd-ppdfile:MY-PPD-FILE.PPD
 
37
  $ ./pyppd-ppdfile cat pyppd-ppdfile:MY-PPD-FILE.PPD
38
38
 
39
39
For CUPS to be able to use your newly-created archive, copy ``pyppd-ppdfile``
40
40
to ``/usr/lib/cups/driver/`` and you're done.
 
41
 
 
42
The generated ``pyppd-ppdfile`` can be arbitrarily renamed, so that more than
 
43
one packed repository can be installed on one system. This can be useful if
 
44
you need a better performance, be it in time or memory usage. Note that also
 
45
the PPD URIs will follow the new name:
 
46
 
 
47
  $ ./pyppd-ppdfile list
 
48
 
 
49
  pyppd-ppdfile:LasterStar/LaserStar-XX100.ppd
 
50
 
 
51
  $ mv pyppd-ppdfile laserstar
 
52
 
 
53
  $ ./laserstar list
 
54
 
 
55
  laserstar:LaserStar/LaserStar-XX100.ppd
 
56
 
 
57
Contributors
 
58
------------
 
59
 
 
60
* **Till Kamppeter** - Original idea, mentoring and feedback. User #0.
 
61
 
 
62
* **Hin-Tak Leung** - Lots of technical suggestions.
 
63
 
 
64
* **Flávio Ribeiro** and **Diógenes Fernandes** - Refactorings and general Python's best practices tips.
 
65
 
 
66
* **Google's OSPO** - Initial funding at GSoC 2010.