summaryrefslogtreecommitdiff
path: root/docs/src/quickstart/install.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/quickstart/install.rst')
-rw-r--r--docs/src/quickstart/install.rst29
1 files changed, 18 insertions, 11 deletions
diff --git a/docs/src/quickstart/install.rst b/docs/src/quickstart/install.rst
index a71adffb5..979d0f178 100644
--- a/docs/src/quickstart/install.rst
+++ b/docs/src/quickstart/install.rst
@@ -7,9 +7,7 @@ Many scientific Python distributions, such as Anaconda [Anaconda]_,
Enthought Canopy [Canopy]_, and Sage [Sage]_,
bundle Cython and no setup is needed. Note however that if your
distribution ships a version of Cython which is too old you can still
-use the instructions below to update Cython. Everything in this
-tutorial should work with Cython 0.11.2 and newer, unless a footnote
-says otherwise.
+use the instructions below to update Cython.
Unlike most Python software, Cython requires a C compiler to be
present on the system. The details of getting a C compiler varies
@@ -17,20 +15,29 @@ according to the system used:
- **Linux** The GNU C Compiler (gcc) is usually present, or easily
available through the package system. On Ubuntu or Debian, for
- instance, the command ``sudo apt-get install build-essential`` will
- fetch everything you need.
+ instance, it is part of the ``build-essential`` package. Next to a
+ C compiler, Cython requires the Python header files. On Ubuntu or
+ Debian, the command ``sudo apt-get install build-essential python3-dev``
+ will fetch everything you need.
- **Mac OS X** To retrieve gcc, one option is to install Apple's
XCode, which can be retrieved from the Mac OS X's install DVDs or
from https://developer.apple.com/.
- - **Windows** A popular option is to use the open source MinGW (a
+ - **Windows** The CPython project recommends building extension modules
+ (including Cython modules) with the same compiler that Python was
+ built with. This is usually a specific version of Microsoft Visual
+ C/C++ (MSVC) - see https://wiki.python.org/moin/WindowsCompilers.
+ MSVC is the only compiler that Cython is currently tested with on
+ Windows. If you're having difficulty making setuptools detect
+ MSVC then `PyMSVC <https://github.com/kdschlosser/python_msvc>`_
+ aims to solve this.
+
+ A possible alternative is the open source MinGW (a
Windows distribution of gcc). See the appendix for instructions for
setting up MinGW manually. Enthought Canopy and Python(x,y) bundle
MinGW, but some of the configuration steps in the appendix might
- still be necessary. Another option is to use Microsoft's Visual C.
- One must then use the same version which the installed Python was
- compiled with.
+ still be necessary.
.. dagss tried other forms of ReST lists and they didn't look nice
.. with rst2latex.
@@ -41,7 +48,7 @@ The simplest way of installing Cython is by using ``pip``::
The newest Cython release can always be downloaded from
-http://cython.org. Unpack the tarball or zip file, enter the
+https://cython.org/. Unpack the tarball or zip file, enter the
directory, and then run::
python setup.py install
@@ -59,4 +66,4 @@ with
.. [Anaconda] https://docs.anaconda.com/anaconda/
.. [Canopy] https://www.enthought.com/product/canopy/
-.. [Sage] W. Stein et al., Sage Mathematics Software, http://www.sagemath.org/
+.. [Sage] W. Stein et al., Sage Mathematics Software, https://www.sagemath.org/