pypa/pip — pull request #936 by h-hirokawa (2013-05-10 05:33:54+00:00)
Title: Updated pip.locations.running_under_virtualenv for pyvenv.

Because a virtual environment created by pyvenv doesn't have sys.real_prefix,
running_under_virtualenv function should return True when sys.base_prefix exists and differs from sys.prefix.