Commit 7b34a9a5 authored by mwtoews's avatar mwtoews

Use more recent version of Python for documented examples

parent 91473013
...@@ -35,7 +35,7 @@ have some details for your system. Here we give an example on a Linux ...@@ -35,7 +35,7 @@ have some details for your system. Here we give an example on a Linux
system:: system::
$ gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing \ $ 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 [``gcc`` will need to have paths to your included header files and
paths to libraries you need to link with] paths to libraries you need to link with]
......
...@@ -17,8 +17,8 @@ Appendix: Installing MinGW on Windows ...@@ -17,8 +17,8 @@ Appendix: Installing MinGW on Windows
http://support.microsoft.com/kb/310519 http://support.microsoft.com/kb/310519
4. Finally, tell Python to use MinGW as the default compiler 4. Finally, tell Python to use MinGW as the default compiler
(otherwise it will try for Visual C). If Python is installed to (otherwise it will try for Visual C). If Python is installed to
"c:\\Python26", create a file named "c:\\Python27", create a file named
"c:\\Python26\\Lib\\distutils\\distutils.cfg" containing:: "c:\\Python27\\Lib\\distutils\\distutils.cfg" containing::
[build] [build]
compiler = mingw32 compiler = mingw32
......
...@@ -122,7 +122,7 @@ file should be built like Python was built. Python documentation for writing ...@@ -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 extensions should have some details. On Linux this often means something
like:: 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 ``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 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