ps://github.com/pypa/pip/issues/10647

    This is a function for testability, but should be constant during any one
    run.
    