A more corner-case-proof logic for `wants_break_system_packages`.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabio Manganiello 2024-05-25 10:33:05 +02:00
parent 303b11613b
commit b1dd484704
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 5 additions and 3 deletions

View File

@ -459,11 +459,13 @@ class Dependencies:
# If we're generating a Docker image then we always need
# --break-system-packages
or self._is_docker
# If we're in a virtual environment then we don't need
# --break-system-packages
or not self._is_venv
)
if self._is_venv and not self._is_docker:
# If we're in a virtual environment then we don't need
# --break-system-packages, unless we're generating a Docker image
wants_break_system_packages = False
if self.pip:
deps = sorted(self.pip)
if full_command: