def dist_is_local(dist):
return is_local(dist_location(dist))<EOL>
Return True if given Distribution object is installed locally
(i.e. within current virtualenv).

Always True if we're not in a virtualenv.