[Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

Robert Kern robert.kern at gmail.com
Wed May 16 10:15:06 EDT 2012


On Wed, May 16, 2012 at 3:10 PM, Nathaniel Smith <njs at pobox.com> wrote:
> On Wed, May 16, 2012 at 3:04 PM, Benjamin Root <ben.root at ou.edu> wrote:

>> Just as a sanity check, do the scipy tests run without producing any such
>> messages?
>
> I tried checking this before, actually, but can't figure out how to
> build scipy against a copy of numpy that is installed in either a
> virtualenv or just on PYTHONPATH. (Basically, I just don't want to
> install some random development numpy into my system python.) Any
> suggestions?

scipy will build against whatever numpy the python executable that
runs the setup.py manages to import. So if you are using virtualenv,
just make sure that the virtualenv is activated and "python" refers to
the virtualenv's python executable.

-- 
Robert Kern



More information about the NumPy-Discussion mailing list