From bae1c7bef07a95929914fea06c74fc5e8104d4cf Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Sat, 18 Nov 2017 12:47:07 -0500 Subject: [PATCH] Python 3: detect venv virtual environments too Signed-off-by: Cleber Rosa --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 56c8de6e..a226bf46 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages VERSION = open('VERSION', 'r').read().strip() -VIRTUAL_ENV = hasattr(sys, 'real_prefix') +VIRTUAL_ENV = (hasattr(sys, 'real_prefix') or 'VIRTUAL_ENV' in os.environ) def get_dir(system_path=None, virtual_path=None): -- GitLab