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 cab1f8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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._create_virtualenv = not config.get("virtualenvs.create")
self._execute_operations = True
self._lock = False

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

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

if isinstance(op, Update) and self._create_virtualenv:
op.skip("Not updating because: virtualenvs.create==False")
continue

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

0 comments on commit cab1f8c

Please sign in to comment.