Installing from a read-only source

You want to take a look at https://github.com/pypa/pip/issues/7555 and at Proposal: Adding a persistent cache directory to PEP 517 hooks respectively.