Changeset 713 for branches/4.x


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
  • branches/4.x/docs/contents/install.rst

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