annotate README @ 48:f4fd8c20511c MySQLdb

Read a default file in the test setUp. Since Python 2.4, int() will return longs if needed so make all long references int as in Python 3.0 there is no more long due to int/long unification (new ints are old longs).
author adustman
date Sun, 22 Feb 2009 20:01:31 +0000
parents 7b67220c5109
children 17062a65fde9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
1 ====================
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
2 MySQLdb Installation
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
3 ====================
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
4
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
5 .. contents::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
6 ..
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
7
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
8 Prerequisites
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
9 -------------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
10
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
11 + Python 2.3.4 or higher
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
12
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
13 * http://www.python.org/
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
14
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
15 * Versions lower than 2.3 WON'T WORK.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
16
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
17 * 2.4 is the primary test environment.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
18
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
19 * Red Hat Linux:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
20
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
21 - Make sure you have the Python development headers and libraries
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
22 (python-devel).
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
23
34
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
24 + setuptools
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
25
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
26 * http://pypi.python.org/pypi/setuptools
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
27
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
28 + MySQL 3.23.32 or higher
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
29
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
30 * http://www.mysql.com/downloads/
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
31
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
32 * Versions lower than 3.22 definitely WON'T WORK.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
33
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
34 * Versions lower than 3.22.19 might not work.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
35
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
36 * MySQL-3.22 might work but isn't supported anymore. It's very old.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
37
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
38 * MySQL-3.23 ought to work, but it's pretty elderly.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
39
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
40 * MySQL-4.0 is supported, but not tested and slightly discouraged.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
41
34
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
42 * MySQL-4.1 is supported. The prepared statements API is not
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
43 supported, and won't be until MySQLdb-1.3 or 2.0, if ever.
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
44
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
45 * MySQL-5.0 is supported and tested, including stored procedures.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
46
34
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
47 * MySQL-5.1 is supported (currently a release candidate) but untested.
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
48 It should work.
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
49
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
50 * MySQL-6.0 is sorta-kinda-supported (currently alpha) but untested.
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
51 It should work.
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
52
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
53 * Drizzle <https://launchpad.net/drizzle> is a fork of MySQL. So far
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
54 the C API looks really similar except everything is renamed.
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
55 Drizzle support probably won't happen in 1.2. There may be have to
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
56 be an entirely different module, but still using DB-API.
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
57
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
58 * MaxDB, formerly known as SAP DB (and maybe Adabas D?), is a
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
59 completely different animal. Use the sapdb.sql module that comes
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
60 with MaxDB.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
61
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
62 * Red Hat Linux packages:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
63
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
64 - mysql-devel to compile
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
65
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
66 - mysql and/or mysql-devel to run
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
67
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
68 * MySQL.com RPM packages:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
69
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
70 - MySQL-devel to compile
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
71
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
72 - MySQL-shared if you want to use their shared
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
73 library. Otherwise you'll get a statically-linked module,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
74 which may or may not be what you want.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
75
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
76 - MySQL-shared to run if you compiled with MySQL-shared installed
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
77
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
78 * Transactions (particularly InnoDB tables) are supported for
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
79 MySQL-3.23 and up. You may need a special package from your vendor
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
80 with this support turned on.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
81
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
82 + zlib
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
83
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
84 * Required for MySQL-3.23 and newer.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
85
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
86 * Red Hat Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
87
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
88 - zlib-devel to compile
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
89
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
90 - zlib to run
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
91
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
92 + openssl
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
93
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
94 * May be needed for MySQL-4.0 or newer, depending on compilation
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
95 options. If you need it, you probably already have it.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
96
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
97 - you may need openssl-devel on some platforms
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
98
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
99 + C compiler
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
100
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
101 * Most free software-based systems already have this, usually gcc.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
102
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
103 * Most commercial UNIX platforms also come with a C compiler, or
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
104 you can also use gcc.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
105
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
106 * If you have some Windows flavor, you usually have to pay extra
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
107 for this, or you can use Cygwin_.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
108
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
109 .. _Cygwin: http://www.cygwin.com/
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
110
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
111
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
112 Building and installing
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
113 -----------------------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
114
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
115 The setup.py script uses mysql_config to find all compiler and linker
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
116 options, and should work as is on any POSIX-like platform, so long as
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
117 mysql_config is in your path.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
118
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
119 Depending on which version of MySQL you have, you may have the option
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
120 of using three different client libraries. To select the client library,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
121 edit the [options] section of site.cfg:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
122
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
123 embedded
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
124 use embedded server library (libmysqld) if True; otherwise use
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
125 one of the client libraries (default).
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
126
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
127 threadsafe
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
128 thread-safe client library (libmysqlclient_r) if True (default);
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
129 otherwise use non-thread-safe (libmysqlclient). You should
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
130 always use the thread-safe library if you have the option;
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
131 otherwise you *may* have problems.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
132
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
133 static
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
134 if True, try to link against a static library; otherwise link
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
135 against dynamic libraries (default). You may need static linking
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
136 to use the embedded server.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
137
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
138
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
139 Finally, putting it together::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
140
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
141 $ tar xfz MySQL-python-1.2.1.tar.gz
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
142 $ cd MySQL-python-1.2.1
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
143 $ # edit site.cfg if necessary
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
144 $ python setup.py build
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
145 $ sudo python setup.py install # or su first
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
146
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
147
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
148 Windows
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
149 .......
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
150
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
151 I don't do Windows. However if someone provides me with a package for
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
152 Windows, I'll make it available. Don't ask me for help with Windows
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
153 because I can't help you.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
154
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
155 Generally, though, running setup.py is similar to above::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
156
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
157 C:\...> python setup.py install
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
158 C:\...> python setup.py bdist_wininst
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
159
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
160 The latter example should build a Windows installer package, if you
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
161 have the correct tools. In any event, you *must* have a C compiler.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
162 Additionally, you have to set an environment variable (mysqlroot)
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
163 which is the path to your MySQL installation. In theory, it would be
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
164 possible to get this information out of the registry, but like I said,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
165 I don't do Windows, but I'll accept a patch that does this.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
166
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
167 On Windows, you will definitely have to edit site.cfg since there is
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
168 no mysql_config in the MySQL package.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
169
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
170
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
171 Zope
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
172 ....
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
173
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
174 If you are using a binary package of Zope, you need run setup.py with
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
175 the python executable that came with Zope. Otherwise, you'll install
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
176 into the wrong Python tree and Zope (ZMySQLDA) will not be able to
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
177 find _mysql.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
178
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
179
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
180 Binary Packages
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
181 ---------------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
182
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
183 I don't plan to make binary packages any more. However, if someone
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
184 contributes one, I will make it available. Several OS vendors have
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
185 their own packages available.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
186
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
187
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
188 RPMs
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
189 ....
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
190
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
191 If you prefer to install RPMs, you can use the bdist_rpm command with
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
192 setup.py. This only builds the RPM; it does not install it. You may
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
193 want to use the --python=XXX option, where XXX is the name of the
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
194 Python executable, i.e. python, python2, python2.4; the default is
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
195 python. Using this will incorporate the Python executable name into
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
196 the package name for the RPM so you have install the package multiple
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
197 times if you need to support more than one version of Python. You can
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
198 also set this in setup.cfg.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
199
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
200
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
201 Red Hat Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
202 .............
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
203
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
204 MySQL-python is pre-packaged in Red Hat Linux 7.x and newer. This
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
205 includes Fedora Core and Red Hat Enterprise Linux. You can also
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
206 build your own RPM packages as described above.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
207
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
208
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
209 Debian GNU/Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
210 ................
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
211
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
212 Packaged as `python-mysqldb`_::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
213
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
214 # apt-get install python-mysqldb
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
215
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
216 Or use Synaptic.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
217
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
218 .. _`python-mysqldb`: http://packages.debian.org/python-mysqldb
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
219
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
220
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
221 Ubuntu
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
222 ......
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
223
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
224 Same as with Debian.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
225
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
226
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
227 Gentoo Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
228 ............
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
229
34
7b67220c5109 Merge back doc changes 556:557 from 1.2 branch
kylev
parents: 0
diff changeset
230 Packaged as `mysql-python`_. ::
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
231
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
232 # emerge sync
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
233 # emerge mysql-python
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
234 # emerge zmysqlda # if you use Zope
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
235
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
236 .. _`mysql-python`: http://packages.gentoo.org/search/?sstring=mysql-python
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
237
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
238
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
239 BSD
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
240 ...
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
241
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
242 MySQL-python is a ported package in FreeBSD, NetBSD, and OpenBSD,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
243 although the name may vary to match OS conventions.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
244
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
245
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
246 License
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
247 -------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
248
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
249 GPL or the original license based on Python 1.5.2's license.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
250
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
251
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
252 :Author: Andy Dustman <[email protected]>
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
253 :Revision: $Id$