This repository is used as a submodule to the dolphin emulator a development fork of the dolphin emulator and contains the external dependencies necessary for embedding Python.
The contents are as follows:
include/
: Python header files, for development. Code usually just includesPython.h
.libs/
: Libraries to link against.embed/
: Files needed by Python at runtime in the output directory. The.dll
files get copied to the root, the rest to a directory calledpython-embed/
.
To construct this collection of files from scratch, the following steps are required:
- Install a 64-bit version of Python 3, and also download the respective embeddable zip file (requires Windows). Make sure to check "Download Debug Binaries" when installing.
- Copy the contents of your Python installation's
libs/
directory intolibs/
, except tkinter (probably named_tkinter.lib
). - Copy the contents of your Python installation's
include/
directory intoinclude/
. - Copy the contents of the embeddable zip file into
embed/
. The.exe
files may be removed. - For each
.dll
file inembed/
, also copy over the respective*_d.dll
file from your Python installation's directory (or theDLLs
subdirectory), if it exists. For me those werepython3_d.dll
,python36_d.dll
andDLLs/sqlite3_d.dll
. - For each
.pyd
file inembed/
(python dynamic linked libraries), also copy over the respective*_d.pyd
file from your Python installation'sDLLs
subdirectory.