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 gvanrossum
Recipients BTaskaya, Mark.Shannon, barry, brandtbucher, brett.cannon, eric.snow, gregory.p.smith, gvanrossum, indygreg, larry, lemburg, lys.nikolaou, methane, miss-islington, nascheme, ncoghlan, pablogsal, rhettinger, ronaldoussoren, santhu_reddy12, shihai1991, terry.reedy, vstinner
Date 2021-10-19.01:14:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Is gh-28940 only for UNIX?

I built on Windows with default options (PCbuild\build.bat) and it looks like the frozen modules are used by default even though I am running in the source directory. (I put a printf() call in unmarshal_frozen_code().)

I also put a printf() in is_dev_env() and found that it returns 0 on this check:

    /* If dirname() is the same for both then it is a dev build. */
    if (len != _Py_find_basename(stdlib)) {
        return 0;

I assume that's because the binary (in my case at least) is at PCbuild\amd64\python.exe which is not the same as my current directory (which is the repo root).
Date User Action Args
2021-10-19 01:14:31gvanrossumsetrecipients: + gvanrossum, lemburg, barry, brett.cannon, nascheme, rhettinger, terry.reedy, gregory.p.smith, ronaldoussoren, ncoghlan, vstinner, larry, methane, Mark.Shannon, eric.snow, indygreg, lys.nikolaou, pablogsal, miss-islington, brandtbucher, BTaskaya, shihai1991, santhu_reddy12
2021-10-19 01:14:31gvanrossumsetmessageid: <>
2021-10-19 01:14:31gvanrossumlinkissue45020 messages
2021-10-19 01:14:30gvanrossumcreate