summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernát Gábor <gaborjbernat@gmail.com>2018-10-26 17:43:37 +0100
committerGitHub <noreply@github.com>2018-10-26 17:43:37 +0100
commit9dfcb432485e1f6650716def9f14f3872310bccc (patch)
tree48132ae620f65e5472190c6032ab37ccaf0e00c9
parentafca44a09ba9c6f17bc3252e1bea15a6dedc4fd2 (diff)
downloadvirtualenv-9dfcb432485e1f6650716def9f14f3872310bccc.tar.gz
ensure prefix path is absolute (#1227)
Replaces #1208 as the PR is not edit-able.
-rw-r--r--docs/changes.rst2
-rwxr-xr-xsrc/virtualenv.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/changes.rst b/docs/changes.rst
index 6b0bc00..0eaff3e 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 e814484..8c0f5e5 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__)]