(In reply to Daniel Garcia from comment #1) > I've been working in an initial implementation of this with two patches, one > for the python interpreter and another one for the python-pip > Maybe it's easier to do it just in the pip code, using the "prefix" argument: # pip installations by default to local if prefix is None and scheme_name == "posix_prefix" and "RPM_BUILD_ROOT" not in os.environ: prefix = "/usr/local" https://build.opensuse.org/projects/home:dgarcia:usr-local/packages/python-pip/files/install-usr-local.patch?expand=1