This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ncoghlan, steve.dower, twouters, vstinner
Date 2019-05-25.00:41:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558744870.99.0.704861704665.issue36940@roundup.psfhosted.org>
In-reply-to
Content
Another file which should maybe also be updated to PEP 587, PC/bdist_wininst/install.c:

static int compile_filelist(HINSTANCE hPython, BOOL optimize_flag)
{
    DECLPROC(hPython, void, Py_Initialize, (void));
    DECLPROC(hPython, void, Py_SetProgramName, (wchar_t *));
    DECLPROC(hPython, void, Py_Finalize, (void));
    DECLPROC(hPython, int, PyRun_SimpleString, (char *));
    DECLPROC(hPython, PyObject *, PySys_GetObject, (char *));
    DECLVAR(hPython, int, Py_OptimizeFlag);

    int errors = 0;
    struct tagFile *p = file_list;

    if (!p)
        return 0;

    if (!Py_Initialize || !Py_SetProgramName || !Py_Finalize)
        return -1;

    if (!PyRun_SimpleString || !PySys_GetObject || !Py_OptimizeFlag)
        return -1;

    *Py_OptimizeFlag = optimize_flag ? 1 : 0;
    Py_SetProgramName(wmodulename);
    Py_Initialize();

    errors += do_compile_files(PyRun_SimpleString, optimize_flag);
    Py_Finalize();

    return errors;
}
History
Date User Action Args
2019-05-25 00:41:11vstinnersetrecipients: + vstinner, twouters, ncoghlan, steve.dower
2019-05-25 00:41:10vstinnersetmessageid: <1558744870.99.0.704861704665.issue36940@roundup.psfhosted.org>
2019-05-25 00:41:10vstinnerlinkissue36940 messages
2019-05-25 00:41:10vstinnercreate