Issue 22262: Python External Libraries are stored in directory above where source code is located. (original) (raw)
When trying to compile cpython, it puts dependencies like tkinter in the directory above the hg directory. Since I have a highly defined directory structure, this can become quite annoying. Therefore, I would like to propose having the build system download the files into the same root directory as where the code is, but in a folder that will be ignored for source control.
I tend to agree (see #17896, this issue is a duplicate), but I've not had enough agreement to be comfortable going ahead with that move.
I've not tested it, but you could try moving the already-downloaded sources into the folder you want (say, "externals") and then building with:
PCbuild\build.bat -d "/p:externalsDir=externals"
That ought to work, until such time as we actually move the default.