[IPython-dev] How did Cython magic know to include np.get_include()?
nathan12343 at gmail.com
Fri Apr 3 22:49:48 EDT 2015
On Fri, Apr 3, 2015 at 7:35 PM, Yuxiang Wang <yw5aj at virginia.edu> wrote:
> Hi all,
> When I use %%cython magic, it automatically knows to include the
> np.get_include(), which works really great. But just being curious - how
> was that achieved? Did the code detect whether numpy was imported, and if
> yes it will add np.get_include to the include_dirs?
You may be interested in the implementation:
> Yuxiang "Shawn" Wang
> Gerling Research Lab
> University of Virginia
> yw5aj at virginia.edu
> +1 (434) 284-0836
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev