annotate doc/install.txt @ 938:a5a1c9a11135 tip

update tags
author convert-repo
date Tue, 31 May 2011 20:05:15 +0000
parents 211cd26d6fd9
children
rev   line source
608
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
1 Installing Genshi
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
2 =================
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
3
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
4
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
5 .. contents:: Contents
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
6 :depth: 2
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
7 .. sectnum::
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
8
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
9
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
10 Prerequisites
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
11 -------------
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
12
756
211cd26d6fd9 Document dropping of Python 2.3 compat.
cmlenz
parents: 608
diff changeset
13 * Python_ 2.4 or later
211cd26d6fd9 Document dropping of Python 2.3 compat.
cmlenz
parents: 608
diff changeset
14 * Optional: Setuptools_ 0.6c3 or later
608
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
15
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
16 .. _python: http://www.python.org/
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
17 .. _setuptools: http://cheeseshop.python.org/pypi/setuptools
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
18
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
19 Setuptools is only required for the `template engine plugin`_, which can be
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
20 used to integrate Genshi with Python web application frameworks such as Pylons
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
21 or TurboGears. Genshi also provides a Setuptools-based plugin that integrates
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
22 its `internationalization support`_ with the Babel_ library, but that support
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
23 can also be used without Setuptools being available (although in a slightly
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
24 less convenient fashion).
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
25
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
26 .. _`template engine plugin`: plugin.html
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
27 .. _`internationalization support`: i18n.html
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
28 .. _babel: http://babel.edgewall.org/
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
29
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
30
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
31 Installing via ``easy_install``
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
32 -------------------------------
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
33
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
35 Genshi using the easy_install command-line tool::
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
36
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
37 $ easy_install Genshi
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
38
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
39 This downloads and installs the latest version of the Genshi package.
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
40
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
42 the ``-U`` option to the above command.
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
43
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
44
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
45 Installing from a Binary Installer
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
46 ----------------------------------
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
47
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
49 from such a package, simply download and open it.
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
50
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
51
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
52 Installing from a Source Tarball
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
53 --------------------------------
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
54
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
55 Once you've downloaded and unpacked a Genshi source release, enter the
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
56 directory where the archive was unpacked, and run::
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
57
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
58 $ python setup.py install
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
59
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
61 command will by default attempt to install Genshi to the Python
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
62 ``site-packages`` directory on your system.
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
63
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
65 improve performance in some areas. This extension is automatically compiled
3ce3f8477996 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
3ce3f8477996 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
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
69 native extension module, you can explicitly bypass the compilation using the
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
70 ``--without-speedups`` option::
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
71
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
72 $ python setup.py --without-speedups install
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
73
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
74 For other build and installation options, please consult the easy_install_
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
75 and/or the Python distutils_ documentation.
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
76
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
77 .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
78 .. _distutils: http://docs.python.org/inst/inst.html
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
79
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
80
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
81 Support
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
82 -------
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
83
3ce3f8477996 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
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
85 questions on the Genshi `mailing list`_ or `IRC channel`_.
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
86
3ce3f8477996 Moved the installation instructions into the docs.
cmlenz
parents:
diff changeset
87 .. _`mailing list`: http://genshi.edgewall.org/wiki/MailingList
3ce3f8477996 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