Extract console script spec calculation from install_wheel
Extract console script spec calculation from install_wheel

This big chunk of code was independent of the rest of our wheel
installation process. Moving it out enforces that there are no
dependencies between it and the original function, and makes it easier
to read the original function.

pradyunsg/pip,pfmoore/pip,sbidoul/pip,pfmoore/pip,pradyunsg/pip,sbidoul/pip,pypa/pip,pypa/pip