instead of adding this, did you try removing the `not req_to_install.editable` from [here](https://github.com/pypa/pip/blob/develop/pip/req/req_set.py#L220)

it looks like it would work assuming you set `satisfied_by` back to None like I mention above