Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bca0383

Browse files
author
Neil Conway
committed
Update installation docs for PL/Python to note that distutils is now
required. Original patch from James William Pye, editorializing by Neil Conway.
1 parent 9fcbe2a commit bca0383

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

doc/src/sgml/installation.sgml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.203 2004/06/20 01:32:46 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.204 2004/09/23 00:30:13 neilc Exp $ -->
22

33
<chapter id="installation">
44
<title><![%standalone-include[<productname>PostgreSQL</>]]>
@@ -144,9 +144,9 @@ su - postgres
144144
<indexterm><primary>libperl</primary></indexterm>
145145
<filename>libperl</filename> library must be a shared library
146146
also on most platforms. This appears to be the default in
147-
recent Perl versions, but it was not in earlier versions, and in
148-
general it is the choice of whomever installed Perl at your
149-
site.
147+
recent <productname>Perl</productname> versions, but it was not
148+
in earlier versions, and in general it is the choice of whomever
149+
installed Perl at your site.
150150
</para>
151151

152152
<para>
@@ -170,16 +170,20 @@ su - postgres
170170
<listitem>
171171
<para>
172172
To build the PL/Python server programming language, you need a
173-
Python installation, including the header files. Since
174-
PL/Python will be a shared library, the
175-
<indexterm><primary>libpython</primary></indexterm>
176-
<filename>libpython</filename> library must be a shared library
177-
also on most platforms. This is not the case in a default
178-
Python installation.
173+
<productname>Python</productname> installation with the header
174+
files and the distutils module. The distutils module is
175+
included by default with <productname>Python</productname> 1.6
176+
and later; users of earlier versions of
177+
<productname>Python</productname> will need to install it.
179178
</para>
180179

181180
<para>
182-
If after building and installing you have a file called
181+
Since PL/Python will be a shared library, the
182+
<indexterm><primary>libpython</primary></indexterm>
183+
<filename>libpython</filename> library must be a shared library
184+
also on most platforms. This is not the case in a default
185+
<productname>Python</productname> installation. If after
186+
building and installing you have a file called
183187
<filename>plpython.so</filename> (possibly a different
184188
extension), then everything went well. Otherwise you should
185189
have seen a notice like this flying by:
@@ -188,17 +192,18 @@ su - postgres
188192
*** You might have to rebuild your Python installation. Refer to
189193
*** the documentation for details.
190194
</screen>
191-
That means you have to rebuild (part of) your Python
192-
installation to supply this shared library.
195+
That means you have to rebuild (part of) your
196+
<productname>Python</productname> installation to supply this
197+
shared library.
193198
</para>
194199

195200
<para>
196-
If you have problems, run Python 2.3 or later's configure using the
197-
<literal>--enable-shared</> flag. On some operating systems you
198-
don't have to build a shared library, but you will have
199-
to convince the <productname>PostgreSQL</> build system of this.
200-
Consult the <filename>Makefile</filename> in the
201-
<filename>src/pl/plpython</filename> directory for details.
201+
If you have problems, run <productname>Python</> 2.3 or later's
202+
configure using the <literal>--enable-shared</> flag. On some
203+
operating systems you don't have to build a shared library, but
204+
you will have to convince the <productname>PostgreSQL</> build
205+
system of this. Consult the <filename>Makefile</filename> in
206+
the <filename>src/pl/plpython</filename> directory for details.
202207
</para>
203208
</listitem>
204209

0 commit comments

Comments
 (0)