author | robin |
Tue, 19 Nov 2013 13:50:34 +0000 | |
branch | py33 |
changeset 3794 | 398ea04239b5 |
parent 3673 | 9235ee0a8dcb |
child 4040 | 60080318e740 |
permissions | -rw-r--r-- |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
1 |
===================================== |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
2 |
README |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
3 |
===================================== |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
4 |
|
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
5 |
(C) Copyright ReportLab Inc. 2000-2013. |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
6 |
See ``LICENSE.txt`` for license details. |
2968 | 7 |
|
3310 | 8 |
This is the ReportLab PDF Toolkit. It allows rapid creation |
9 |
of rich PDF documents, and also creation of charts in a variety |
|
10 |
of bitmap and vector formats. |
|
11 |
||
12 |
This library is also the foundation for our commercial product |
|
13 |
Report Markup Language (RML), available in the ReportLab PLUS |
|
14 |
package. RML offers many more features, a template-based style |
|
15 |
of document development familiar to all web developers, and |
|
16 |
higher development productivity. Please consider trying out |
|
17 |
RML for your project, as the license sales support our open |
|
18 |
source development. |
|
2968 | 19 |
|
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
20 |
Contents of this file: |
2982 | 21 |
|
3310 | 22 |
1. Licensing |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
23 |
|
3310 | 24 |
2. Installation |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
25 |
|
3661
217c1f6bfac7
Reverted last change.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3660
diff
changeset
|
26 |
2.1 Source Distribution or Subversion |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
27 |
|
3661
217c1f6bfac7
Reverted last change.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3660
diff
changeset
|
28 |
2.2 Manual Installation without C Compiler (e.g. Windows) |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
29 |
|
3661
217c1f6bfac7
Reverted last change.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3660
diff
changeset
|
30 |
2.3 easy_install |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
31 |
|
3661
217c1f6bfac7
Reverted last change.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3660
diff
changeset
|
32 |
2.4 Windows .exe Installer |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
33 |
|
3661
217c1f6bfac7
Reverted last change.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3660
diff
changeset
|
34 |
2.5 Ubuntu and other Debian-based Systems |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
35 |
|
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
36 |
3. Prerequisites / Dependencies |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
37 |
|
3310 | 38 |
4. Documentation |
39 |
||
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
40 |
5. Acknowledgements and Thanks |
2968 | 41 |
|
2982 | 42 |
|
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
43 |
1. Licensing |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
44 |
============ |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
45 |
BSD license. See ``LICENSE.txt`` for details. |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
46 |
|
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
47 |
|
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
48 |
2. Installation |
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
49 |
=============== |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
50 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
51 |
In most cases, ``easy_install reportlab`` or ``pip install reportlab`` will |
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
52 |
do the job. Full details follow below for each platform. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
53 |
|
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
54 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
55 |
2.1 General prerequisites |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
56 |
-------------------------- |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
57 |
You need to have installed Python (versions 2.5 through 2.7), |
3310 | 58 |
and ideally PIL with Freetype support; more notes on prerequisites |
59 |
follow below. |
|
60 |
||
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
61 |
2.2. Where to get the code |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
62 |
------------------------------------------ |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
63 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
64 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
65 |
Daily and release builds are available from ReportLab's |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
66 |
open download area:: |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
67 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
68 |
http://www.reportlab.org/ftp/ |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
69 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
70 |
Daily builds will unzip/untar to produce a dated directory e.g. |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
71 |
``reportlab-YYYYMMDD/`` but are otherwise structured just like the Mercurial |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
72 |
repository and release builds. |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
73 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
74 |
Releases are also available from the Python Package Index: |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
75 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
76 |
http://pypi.python.org/ |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
77 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
78 |
From March 2013, the code is being hosted in Mercurial on BitBucket. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
79 |
You can obtain the latest code from our Mercurial repository with:: |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
80 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
81 |
hg clone http://bitbucket.org/rptlab/reportlab |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
82 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
83 |
|
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
84 |
Users of our commercial libraries, and/or anyone who registers on our site, |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
85 |
can also access our commercial area which has exactly the same packages, |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
86 |
paired with the matching commercial ones (rlextra); it is important to keep |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
87 |
both in sync. |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
88 |
|
3309 | 89 |
|
2979 | 90 |
|
3309 | 91 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
92 |
2.3 Windows Installer |
3310 | 93 |
-------------------------- |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
94 |
A binary ``.exe`` installer for Windows (built with distutils) is |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
95 |
available on our website. This will install the 'reportlab' package |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
96 |
into your site-packages area (e.g. ``C:\Python27\lib\site-packages``). |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
97 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
98 |
This will NOT install the tests, examples and documentation. If you want |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
99 |
to learn your way around the package or do development with it on Windows, |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
100 |
we suggest you also download a source copy, unzip it and work with the |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
101 |
examples/tests within that directory. |
3309 | 102 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
103 |
2.4 Mac OS |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
104 |
------------- |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
105 |
On Mac OS, you will need XCode with the Command Line Tools option installed |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
106 |
in order to compile the C extensions. On Lion |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
107 |
or later, type ``clang`` at a prompt; if you get ``command not found`` or |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
108 |
similar, the C compiler is not installed. |
3309 | 109 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
110 |
We then recommend the *brew* installation tool to fetch open source packages. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
111 |
You should run:: |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
112 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
113 |
brew install freetype |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
114 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
115 |
before instaling *reportlab* to ensure that the Python Imaging Library gets |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
116 |
compiled with JPEG support. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
117 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
118 |
Thereafter, you can install with ``easy_install reportlab`` or by fetching |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
119 |
the source and using ``python setup.py install`` |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
120 |
|
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
121 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
122 |
2.5 Unix / Linux |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
123 |
----------------- |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
124 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
125 |
On Unix and Mac OS we assume a C compiler is available to compile the |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
126 |
C extensions. |
3309 | 127 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
128 |
On Ubuntu, you will need |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
129 |
*build-essential*, *libfreetype6-dev*, *python-dev* and *python-imaging*. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
130 |
Most other Linux and xBSD distributions have packages with |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
131 |
similar names. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
132 |
|
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
133 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
134 |
Thereafter, you can use ``easy_install reportlab``, ``pip install reportlab``, |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
135 |
or fetch the source and use ``python setup.py install``. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
136 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
137 |
From Ubuntu 12.04 desktop onwards, a copy of reportlab is already installed. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
138 |
Take care not to confuse it with any releases you download. |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
139 |
|
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
140 |
|
2968 | 141 |
|
2979 | 142 |
|
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
143 |
3. Prerequisites / Dependencies |
3310 | 144 |
=============================== |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
145 |
This works with Python 2.5 - 2.7. Older versions are available |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
146 |
going back to Python 1.5 or thereabouts. |
2979 | 147 |
|
148 |
There are no absolute prerequisites beyond the Python |
|
149 |
standard library; but the Python Imaging Library (PIL) |
|
150 |
is needed to include images other than JPG inside PDF files. |
|
151 |
||
152 |
The C extension are optional but anyone able to do so should |
|
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
153 |
use _rl_accel as it helps achieve acceptable speeds when wrapping |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
154 |
paragraphs and measuring text string lengths. The |
2979 | 155 |
_renderPM extension allows graphics (such as charts) to be saved |
156 |
as bitmap images for the web, as well as inside PDFs. |
|
157 |
||
158 |
||
3310 | 159 |
4. Documentation |
160 |
================ |
|
2968 | 161 |
Naturally, we generate our own manuals using the library. |
162 |
In a 'built' distribution, they may already be present in the |
|
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
163 |
docs/ directory. If not, execute ``python genAll.py`` in |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
164 |
that directory, and it will create three PDF manuals:: |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
165 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
166 |
reportlab-userguide.pdf |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
167 |
reportlab-reference.pdf |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
168 |
reportlab-graphics-reference.pdf |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
169 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
170 |
These are also available in daily build form from the documentation |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
171 |
page on our web site. The manuals are very useful 'how-to' examples |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
172 |
if you are aiming to create long documents. |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
173 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
174 |
5. Test suite |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
175 |
============= |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
176 |
Tests are in the ``tests/`` directory. They can be executed by cd'ing into the |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
177 |
directory and executing ``python runAll.py``, or from ``python setup.py tests``. |
3666
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
178 |
|
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
179 |
The tests will simply try to 'import reportlab'. Be warned that if you already have a copy |
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
180 |
of reportlab installed (which happens by default in Ubuntu 12.04 desktop), it may try to |
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
181 |
run the installed reportlab and cause permission errors as it can't generate PDF files |
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
182 |
without sudo rights. |
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
183 |
|
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
184 |
If you do not have a copy insralled and run them prior to installation/compilation, |
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
185 |
there may be one or two failures from tests which exercise the C extensions that have not |
860682253568
further clarification on tests
Andy Robinson <andy@reportlab.com>
parents:
3665
diff
changeset
|
186 |
been compiled. |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
187 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
188 |
The tests mostly produce output files with the same name as the test, but extension |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
189 |
.pdf. It is worth reviewing the list of test scripts as they provide valuable 'how |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
190 |
to' information. |
2968 | 191 |
|
3673
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
192 |
If you have no internet connection, one or two tests may fail where we try to load images |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
193 |
from URLs. This is normal. The next release of this package will silently skip |
9235ee0a8dcb
attempt to simplify readme
Andy Robinson <andy@reportlab.com>
parents:
3666
diff
changeset
|
194 |
such tests using features only available in Python 2.7. |
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
195 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
196 |
6. Demos |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
197 |
======== |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
198 |
A small number of demo programs are included in ``demos/``, none of which are particularly |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
199 |
exciting, but which may have some intructional value. These were the first programs we |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
200 |
wrote back in 2000. |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
201 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
202 |
The *odyssey* demo serves as our benchmark suite. If you download the full Odyssey text, |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
203 |
you can generate a PDF of Homer's Odyssey with either (a) no wrapping, (b) simple paragraphs |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
204 |
or (c) paragraphs with enough artificial markup (bold/italic on certain words) to exercise |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
205 |
the parser. |
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
206 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
207 |
|
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
208 |
7. Acknowledgements and Thanks |
3310 | 209 |
============================== |
3657
f228decec020
Converted to ReST.
Dinu Gherman <gherman@darwin.in-berlin.de>
parents:
3315
diff
changeset
|
210 |
``lib/normalDate.py`` originally by Jeff Bauer. |
2968 | 211 |
|
3665
d324bba13446
updated README for 2013
Andy Robinson <andy@reportlab.com>
parents:
3661
diff
changeset
|
212 |
Many, many contributors have helped out between 2000 and 2013. |
3310 | 213 |
we keep a list in the first chapter of the User Guide; if you |
214 |
have contributed and are not listed there, please let us know. |