From ffbdfaa87834d0a23f4147ef74164170d4400f86 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Wed, 12 Feb 2020 09:39:47 +1100 Subject: Workaround for pip install on Window into a virtual environment. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 548bff8..d940657 100644 --- a/setup.py +++ b/setup.py @@ -424,6 +424,8 @@ PYTHON_VERSION = get_python_config('VERSION') if os.name == 'nt': if hasattr(sys, 'real_prefix'): PYTHON_LIBDIR = sys.real_prefix + elif hasattr(sys, 'base_prefix'): + PYTHON_LIBDIR = sys.base_prefix else: PYTHON_LIBDIR = get_python_config('BINDIR') -- cgit v1.2.1