Staging
v0.5.1
https://github.com/python/cpython
Revision 82a77d38d6dc7df740e7b01b66aeff433730e9ca authored by Nicholas on 21 July 2017, 06:29:44 UTC, committed by Nick Coghlan on 21 July 2017, 06:29:44 UTC
Adds a new 'Pip not installed' section that covers
running `ensurepip` manually, and also references
the relevant section of the Python Packaging User
Guide.

(cherry picked from commit b3527bfefd7a0188d43a2d7515ac6addd97a8202)
1 parent 80ebc43
Raw File
Tip revision: 82a77d38d6dc7df740e7b01b66aeff433730e9ca authored by Nicholas on 21 July 2017, 06:29:44 UTC
[2.7] bpo-30964: Mention ensurepip in package installation docs (GH-2795)
Tip revision: 82a77d3
generrmap.c
#include <stdio.h>
#include <errno.h>

/* Extract the mapping of Win32 error codes to errno */

int main()
{
    int i;
    printf("/* Generated file. Do not edit. */\n");
    printf("int winerror_to_errno(int winerror)\n");
    printf("{\n\tswitch(winerror) {\n");
    for(i=1; i < 65000; i++) {
        _dosmaperr(i);
        if (errno == EINVAL)
            continue;
        printf("\t\tcase %d: return %d;\n", i, errno);
    }
    printf("\t\tdefault: return EINVAL;\n");
    printf("\t}\n}\n");
}
back to top