Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
volgar1x committed Aug 28, 2021
1 parent 634bb23 commit 0fac2ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions poetry/installation/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def __init__(
self._verbose = False
self._write_lock = True
self._dev_mode = True
self._no_remove = not config.get("virtualenvs.create")
self._execute_operations = True
self._lock = False

Expand Down Expand Up @@ -512,6 +513,8 @@ def _filter_operations(
package = op.package

if op.job_type == "uninstall":
if self._no_remove:
op.skip("Not uninstalling because: virtualenvs.create==False")
continue

if not self._env.is_valid_for_marker(package.marker):
Expand Down

0 comments on commit 0fac2ac

Please sign in to comment.