Changeset 713 for trunk


Ignore:
Timestamp:
Jan 11, 2016, 6:26:06 AM (4 years ago)
Author:
cito
Message:

Mention pip in the installation instructions

Also remove the notes about MinGW because they are outdated, and using
one of the free Microsoft compilers is today less problematic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contents/install.rst

    r710 r713  
    2020
    2121
     22Installing with Pip
     23-------------------
     24
     25This is the most easy way to install PyGreSQL if you have "pip" installed
     26on your computer. Just run the following command in your terminal::
     27
     28  pip install PyGreSQL
     29
     30This will automatically try to find and download a distribution on the
     31`Python Package Index <https://pypi.python.org/>`_ that matches your operating
     32system and Python version and install it on your computer.
     33
     34
    2235Installing from a Binary Distribution
    2336-------------------------------------
    2437
    25 This is the easiest way to install PyGreSQL.
     38If you don't want to use "pip", or "pip" doesn't find an appropriate
     39distribution for your computer, you can also try to manually download
     40and install a distribution.
     41
     42When you download the source distribution, you will need to compile the
     43C extensions, for which you need a C compiler installed on your computer.
     44If you don't want to install a C compiler or avoid possible problems
     45with the compilation, you can search for a pre-compiled binary distribution
     46of PyGreSQL on the Python Package Index or the PyGreSQL homepage.
    2647
    2748You can currently download PyGreSQL as Linux RPM, NetBSD package and Windows
     
    4970
    5071Building and installing with Distutils
    51 --------------------------------------
     72~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    5273
    5374You can build and install PyGreSQL using
     
    6182    python setup.py install
    6283
    63 If you are using `MinGW <http://www.mingw.org>`_ to build PyGreSQL under
    64 Microsoft Windows, please note that Python newer version 2.3 is using msvcr71
    65 instead of msvcrt as its common runtime library. You can allow for that by
    66 editing the file ``%MinGWpath%/lib/gcc/%MinGWversion%/specs`` and changing
    67 the entry that reads ``-lmsvcrt`` to ``-lmsvcr71``. You may also need to copy
    68 ``libpq.lib`` to ``libpq.a`` in the PostgreSQL ``lib`` directory. Then use
    69 the following command to build and install PyGreSQL::
    70 
    71     python setup.py build -c mingw32 install
    72 
    7384Now you should be ready to use PyGreSQL.
    7485
    7586Compiling Manually
    76 ------------------
     87~~~~~~~~~~~~~~~~~~
    7788
    7889The source file for compiling the dynamic module is called pgmodule.c.
     
    8192
    8293Stand-Alone
    83 -----------
     94^^^^^^^^^^^
    8495
    8596* In the directory containing ``pgmodule.c``, run the following command::
     
    139150
    140151Built-in to Python interpreter
    141 ------------------------------
     152^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    142153
    143154* Find the directory where your ``Setup`` file lives (usually in the ``Modules``
Note: See TracChangeset for help on using the changeset viewer.