Is there any way to get pip to print the config it will attempt to use? For debugging purposes it would be very nice to know that:
From how I see it, your question can be interpreted in three ways:
There is a quite extensive documentation for the configurations supported by pip, see here: https://pip.pypa.io/en/stable/user_guide/#configuration
This is specified by the package that is being installed. The package maintainer is responsible for producing a configuration script. For example, Numpy has a Configuration class (https://github.com/numpy/numpy/blob/master/numpy/distutils/misc_util.py) that they use to configure their Cython build.
This is easy, pip freeze > requirements.txt
. This will produce a file of all currently installed pip modules along with their exact versions. You can then do pip install -r requirements.txt
to reproduce that exact environment configuration on another machine.
I hope this helps.