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

Fernando Perez fperez.net at gmail.com
Thu May 17 01:41:07 EDT 2012

On Wed, May 16, 2012 at 7:10 AM, Nathaniel Smith <njs at pobox.com> wrote:
> 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?

manage PYTHONPATH as a stack: push install, play/test, pop stack:

Here's my bashrc machinery to do it, crib at will:


Usage is trivial:

cd numpy && ./setup.py install --prefix=~/tmp/junk
cd scipy && ./setup.py install --prefix=~/tmp/junk
# play/test
rm -rf ~/tmp/junk



More information about the NumPy-Discussion mailing list