Closed mefuller closed 2 months ago
Unfortunately, I don't think there's anything we can do about this. This is an error from pip, which obviously we don't control. I guess the only option is to replace pip as the installer, but I don't think there are any other installers out there and anyways this is codified in a PEP apparently so presumably other installers would have the same behavior. Frankly, I can't think of a good reason not to use a virtual environment, what's your use case here?
Edit: whoops I didn't read the error message, I guess we can add --break-system-packages
to the install line. I'm not in favor of that, though, owing to not seeing a reason not to use a venv. Maybe we can add a scons option to add this option?
More specifically, this installation behavior is very explicitly being blocked by Debian's patched version of pip. I'm not particularly keen on adding an option just to circumvent this protection.
If you really want to specify this option, pip allows you to set this (and other arguments) via environment variables. Assuming you run scons
with the env_vars=all
option, I think you could specify this option by setting PIP_BREAK_SYSTEM_PACKAGES=1
.
Problem description
Building and installing from source fails during the install phase on Ubuntu owing to a lack of virtual environment for pip. I think there should be a way to directly install system-wide, without a venv, from
scons install
.Steps to reproduce
Behavior
System information