On Feb 2, 2010, at 7:40 PM, M. Yurko wrote:
For the simple example I just used pyximport. For the extension module I used a setup.py script. The start of the extension module is at http://modular.math.washington.edu/home/myurko/qap/qap/ . I haven't set any of the numpy include directories in the setup.py script. Is it nessecary? It builds fine on my system with numpy installed.
C compilers always search the system libraries and include directories, which is why you don't need to do anything extra when there's a system-wide NumPy install. When you're using something not in the system includes, you need to specify them explicitly. You can get the required numpy paths from numpy.get_include(). This only works from within a setup.py, there's no way to specify it with pyximport.
That being said, it seems like this would be a reasonable path to have in C_INCLUDE_PATH for sage-env so it would be found automatically.
- Robert -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
