I'm using a virutalenv with --system-site-packages
so that my builds don't take forever (I'm actually using Docker, so installs to the container environment are cached).
Problem is that nose
is also getting installed to system site-packages. So when I later run ./myenv/bin/pip install --upgrade nose
, pip says "Requirement already up-to-date: nose in /usr/local/lib/python2.7/dist-packages." As a result, the nosetests
binary never appears in myenv/bin
.
It's important that I should be able to reference that binary regardless of whether the system environment happens to have node installed. I have minor moral qualms with virtualenv's activate
.
I assumed that pip's --ignore-installed
flag would force the virtualenv-local install, but apparently I was wrong. It seems to force the reinstall the system-level package, still in system site-packages.