From 9dfcb432485e1f6650716def9f14f3872310bccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 26 Oct 2018 17:43:37 +0100 Subject: [PATCH] ensure prefix path is absolute (#1227) Replaces #1208 as the PR is not edit-able. --- docs/changes.rst | 2 ++ src/virtualenv.py | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/changes.rst b/docs/changes.rst index 6b0bc00c8..0eaff3e0f 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -1,10 +1,12 @@ Release History =============== + 16.1.0 (unreleased) ------------------- * Fixed documentation to use pypi.org and correct curl options; :issue:`1042` +* bug fix: ensure prefix is absolute when creating a new virtual environment :issue:`1208` 16.0.0 (2018-05-16) ------------------- diff --git a/src/virtualenv.py b/src/virtualenv.py index e814484dc..8c0f5e5fc 100755 --- a/src/virtualenv.py +++ b/src/virtualenv.py @@ -1185,6 +1185,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy prefix = sys.base_prefix else: prefix = sys.prefix + prefix = os.path.abspath(prefix) mkdir(lib_dir) fix_lib64(lib_dir, symlink) stdlib_dirs = [os.path.dirname(os.__file__)]