Commit 6de8f848 authored by scoder's avatar scoder

Merge pull request #296 from mwtoews/master

Use more recent version of Python for documented examples
parents 91473013 7b34a9a5
......@@ -35,7 +35,7 @@ have some details for your system. Here we give an example on a Linux
system::
$ gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing \
-I/usr/include/python2.5 -o yourmod.so yourmod.c
-I/usr/include/python2.7 -o yourmod.so yourmod.c
[``gcc`` will need to have paths to your included header files and
paths to libraries you need to link with]
......
......@@ -17,8 +17,8 @@ Appendix: Installing MinGW on Windows
http://support.microsoft.com/kb/310519
4. Finally, tell Python to use MinGW as the default compiler
(otherwise it will try for Visual C). If Python is installed to
"c:\\Python26", create a file named
"c:\\Python26\\Lib\\distutils\\distutils.cfg" containing::
"c:\\Python27", create a file named
"c:\\Python27\\Lib\\distutils\\distutils.cfg" containing::
[build]
compiler = mingw32
......
......@@ -122,7 +122,7 @@ file should be built like Python was built. Python documentation for writing
extensions should have some details. On Linux this often means something
like::
$ gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python2.5 -o yourmod.so yourmod.c
$ gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python2.7 -o yourmod.so yourmod.c
``gcc`` should have access to the NumPy C header files so if they are not
installed at :file:`/usr/include/numpy` or similar you may need to pass another
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment