I’d like to be run a series of regression tests against my package from within a docker container. To do this, I mount the package source into the docker image - but I don’t want changes from within the container to propagate to the host, so I mount it read-only.
But then when I try to install the package into a virtualenv within the container, I see:
root@b2e917cf2b2c:/src# /venv/bin/pip install /src
Processing /src
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /venv/bin/python3 /venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp2_9mzp35
cwd: /src
Complete output (2 lines):
running egg_info
error: [Errno 30] Read-only file system
----------------------------------------
ERROR: Command errored out with exit status 1: /venv/bin/python3 /venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp2_9mzp35 Check the logs for full command output.
Is there any way to install from local source without modifying the source directory?