From 83a55036e9f0e4dca9819b4e6d1eb326bcf4167f Mon Sep 17 00:00:00 2001 From: Chris Jordan-Squire Date: Wed, 3 Aug 2011 16:11:06 -0500 Subject: DOCS: New ufunc creation docs --- doc/source/reference/c-api.coremath.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/source/reference') diff --git a/doc/source/reference/c-api.coremath.rst b/doc/source/reference/c-api.coremath.rst index 6584f216d..dba092a20 100644 --- a/doc/source/reference/c-api.coremath.rst +++ b/doc/source/reference/c-api.coremath.rst @@ -175,9 +175,9 @@ Linking against the core math library in an extension To use the core math library in your own extension, you need to add the npymath compile and link options to your extension in your setup.py: - >>> from numpy.distutils.misc_utils import get_info + >>> from numpy.distutils.misc_util import get_info >>> info = get_info('npymath') - >>> config.add_extension('foo', sources=['foo.c'], extra_info=**info) + >>> config.add_extension('foo', sources=['foo.c'], extra_info=info) In other words, the usage of info is exactly the same as when using blas_info and co. -- cgit v1.2.1