annotate doc/install.txt @ 1026:2e169deb0adc stable-0.7.x

Merge r1229 to r1238 and r1243 to r1251 from trunk (documentation fixes and Python 3.4 support).
author hodgestar
date Sun, 09 Mar 2014 08:41:45 +0000
parents 70a172ab5705
children
rev   line source
608
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
1 Installing Genshi
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
2 =================
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
3
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
4
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
5 .. contents:: Contents
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
6 :depth: 2
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
7 .. sectnum::
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
8
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
9
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
10 Prerequisites
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
11 -------------
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
12
756
70a172ab5705 Document dropping of Python 2.3 compat.
cmlenz
parents: 608
diff changeset
13 * Python_ 2.4 or later
70a172ab5705 Document dropping of Python 2.3 compat.
cmlenz
parents: 608
diff changeset
14 * Optional: Setuptools_ 0.6c3 or later
608
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
15
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
16 .. _python: http://www.python.org/
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
17 .. _setuptools: http://cheeseshop.python.org/pypi/setuptools
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
18
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
19 Setuptools is only required for the `template engine plugin`_, which can be
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
20 used to integrate Genshi with Python web application frameworks such as Pylons
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
21 or TurboGears. Genshi also provides a Setuptools-based plugin that integrates
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
22 its `internationalization support`_ with the Babel_ library, but that support
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
23 can also be used without Setuptools being available (although in a slightly
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
24 less convenient fashion).
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
25
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
26 .. _`template engine plugin`: plugin.html
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
27 .. _`internationalization support`: i18n.html
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
28 .. _babel: http://babel.edgewall.org/
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
29
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
30
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
31 Installing via ``easy_install``
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
32 -------------------------------
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
33
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
34 If you have a recent version of Setuptools_ installed, you can directly install
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
35 Genshi using the easy_install command-line tool::
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
36
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
37 $ easy_install Genshi
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
38
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
39 This downloads and installs the latest version of the Genshi package.
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
40
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
41 If you have an older Genshi release installed and would like to upgrade, add
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
42 the ``-U`` option to the above command.
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
43
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
44
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
45 Installing from a Binary Installer
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
46 ----------------------------------
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
47
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
48 Binary packages for Windows and Mac OS X are provided for Genshi. To install
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
49 from such a package, simply download and open it.
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
50
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
51
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
52 Installing from a Source Tarball
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
53 --------------------------------
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
54
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
55 Once you've downloaded and unpacked a Genshi source release, enter the
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
56 directory where the archive was unpacked, and run::
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
57
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
58 $ python setup.py install
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
59
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
60 Note that you may need administrator/root privileges for this step, as this
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
61 command will by default attempt to install Genshi to the Python
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
62 ``site-packages`` directory on your system.
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
63
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
64 Genshi comes with an optional extension module written in C that is used to
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
65 improve performance in some areas. This extension is automatically compiled
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
66 when you run the ``setup.py`` script as shown above. In the case that the
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
67 extension can not be compiled, possibly due to a missing or incompatible C
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
68 compiler, the compilation is skipped. If you'd prefer Genshi to not use this
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
69 native extension module, you can explicitly bypass the compilation using the
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
70 ``--without-speedups`` option::
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
71
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
72 $ python setup.py --without-speedups install
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
73
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
74 For other build and installation options, please consult the easy_install_
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
75 and/or the Python distutils_ documentation.
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
76
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
77 .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
78 .. _distutils: http://docs.python.org/inst/inst.html
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
79
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
80
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
81 Support
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
82 -------
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
83
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
84 If you encounter any problems with Genshi, please don't hesitate to ask
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
85 questions on the Genshi `mailing list`_ or `IRC channel`_.
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
86
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
87 .. _`mailing list`: http://genshi.edgewall.org/wiki/MailingList
4f1969708442 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
88 .. _`irc channel`: http://genshi.edgewall.org/wiki/IrcChannel
Copyright (C) 2012-2017 Edgewall Software