|
33 | 33 |
|
34 | 34 | By default, a Python installation on Windows cannot build extension modules. |
35 | 35 | py-postgresql provides optimizations for various key points, but can be |
36 | | -installed and used without them. When an installation is performed on 'win32' |
37 | | -systems, extension modules are *not* built by default. |
| 36 | +installed and used without them. When a source installation is performed on |
| 37 | +'win32' systems, extension modules are *not* built by default. |
38 | 38 |
|
39 | 39 | In order to enable the compilation of extensions, set the environment variable |
40 | | -``PY_BUILD_EXTENSIONS`` to a non-empty string before executing the ``setup.py`` |
| 40 | +``PY_BUILD_EXTENSIONS`` to '1' before executing the ``setup.py`` |
41 | 41 | script:: |
42 | 42 |
|
43 | 43 | C:\-> setenv PY_BUILD_EXTENSIONS 1 |
44 | | - C:\-> python3 setup.py install |
| 44 | + C:\-> c:\python30\python setup.py install |
45 | 45 |
|
46 | | -Or if mingw32 installed:: |
| 46 | +Or more likely, compile using mingw32:: |
47 | 47 |
|
48 | 48 | C:\-> setenv PY_BUILD_EXTENSIONS 1 |
49 | | - C:\-> python3 setup.py build_ext --compiler=mingw32 |
50 | | - C:\-> python3 setup.py install |
| 49 | + C:\-> c:\python30\python setup.py build_ext --compiler=mingw32 |
| 50 | + C:\-> c:\python30\python setup.py install |
51 | 51 |
|
52 | 52 |
|
53 | 53 | Environment |
54 | 54 | ----------- |
55 | 55 |
|
56 | 56 | py-postgresql is not included with the PostgreSQL distribution, so it's |
57 | 57 | impossible for certain defaults to be filled in in a way that's consistent with |
58 | | -bundled applications. |
59 | | -
|
60 | | - ``PGINSTALLATION`` |
61 | | - The default installation to use and reference when collecting client |
62 | | - parameters or managing clusters. |
| 58 | +bundled applications. ``PGINSTALLATION`` can be used to direct the Python |
| 59 | +libraries at the appropriate PostgreSQL installation. This should be set to the |
| 60 | +absolute path of the ``pg_config`` executable. |
63 | 61 | """ |
64 | 62 |
|
65 | 63 | __docformat__ = 'reStructuredText' |
|
0 commit comments