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 f3e894f
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 = 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 not self._create_virtualenv:
op.skip("Not uninstalling because: virtualenvs.create==False")
continue

if isinstance(op, Update) and not 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 f3e894f

Please sign in to comment.