I’m trying to build and install python from source, similar to how you would build other libraries, in order to then be able to use it in CMake as if it was a properly installed python (from the website).
Currently I have:
git clone -b v3.9.19 https://github.com/python/cpython.git
cd cpython
git checkout tags/v3.9.19
.PCbuildbuild.bat -e -p x64 """/p:OutDir=C:/Libraries/Python/"""
This fills C:/Libraries/Python/
with some executables, dll’s, etc., but the include
, Lib
, DLLs
and other folders are missing.
Running the steps for unix systems.
mkdir __build/
../configure ... -prefix=...
make
make install
Does seem to produce a complete python installation.
How can I achieve the same on windows? Is there some step I’m missing?