setup.py: fix the virtualenv detection
VIRTUAL_ENV variable might not be always present. That's the
case for ReadTheDocs. On the other hand, sys.real_prefix seems to
be a more reliable way to detect we are under a virtualenv.
Signed-off-by: NAmador Pahim <apahim@redhat.com>
Showing
想要评论请 注册 或 登录