Skip to content

Commit

Permalink
Merge pull request #1666 from pypa/release-20.0.6
Browse files Browse the repository at this point in the history
fix relative zipapp paths on UNIX - release 20.0.6
  • Loading branch information
gaborbernat authored Feb 26, 2020
2 parents 13ab07c + 21ba7aa commit f352f56
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 16 deletions.
22 changes: 22 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ Release History

.. towncrier release notes start
v20.0.6 (2020-02-26)
--------------------

Bugfixes - 20.0.6
~~~~~~~~~~~~~~~~~
- Fix global site package always being added with bundled macOs python framework builds - by :user:`gaborbernat`. (`#1561 <https://github.com/pypa/virtualenv/issues/1561>`_)
- Fix generated scripts use host version info rather than target - by :user:`gaborbernat`. (`#1600 <https://github.com/pypa/virtualenv/issues/1600>`_)
- Fix circular prefix reference with single elements (accept these as if they were system executables, print a info about
them referencing themselves) - by :user:`gaborbernat`. (`#1632 <https://github.com/pypa/virtualenv/issues/1632>`_)
- Handle the case when the application data folder is read-only:

- the application data folder is now controllable via :option:`app-data`,
- :option:`clear-app-data` now cleans the entire application data folder, not just the ``app-data`` seeder path,
- check if the application data path passed in does not exist or is read-only, and fallback to a temporary directory,
- temporary directory application data is automatically cleaned up at the end of execution,
- :option:`symlink-app-data` is always ``False`` when the application data is temporary

by :user:`gaborbernat`. (`#1640 <https://github.com/pypa/virtualenv/issues/1640>`_)
- Fix PyPy 2 builtin modules are imported from standard library, rather than from builtin - by :user:`gaborbernat`. (`#1652 <https://github.com/pypa/virtualenv/issues/1652>`_)
- Fix creation of entry points when path contains spaces - by :user:`nsoranzo`. (`#1660 <https://github.com/pypa/virtualenv/issues/1660>`_)
- Fix relative paths for the zipapp (for python ``3.7+``) - by :user:`gaborbernat`. (`#1666 <https://github.com/pypa/virtualenv/issues/1666>`_)

v20.0.5 (2020-02-21)
--------------------

Expand Down
1 change: 0 additions & 1 deletion docs/changelog/1561.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/changelog/1600.bugfix.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/changelog/1632.bugfix.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/changelog/1640.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/changelog/1652.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/changelog/1660.bugfix.rst

This file was deleted.

3 changes: 2 additions & 1 deletion src/virtualenv/util/zipapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def extract(full_path, dest):


def _get_path_within_zip(full_path):
sub_file = str(full_path)[len(ROOT) + 1 :]
full_path = os.path.abspath(str(full_path))
sub_file = full_path[len(ROOT) + 1 :]
if IS_WIN:
# paths are always UNIX separators, even on Windows, though __file__ still follows platform default
sub_file = sub_file.replace(os.sep, "/")
Expand Down

0 comments on commit f352f56

Please sign in to comment.