diff --git a/CMakeLists.txt b/CMakeLists.txt index 00db4b8315..ae202cb838 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -374,6 +374,10 @@ if( KICAD_SCRIPTING_MODULES ) add_definitions( -DKICAD_SCRIPTING_MODULES ) endif() +if( KICAD_SCRIPTING_PYTHON3 ) + add_definitions( -DKICAD_SCRIPTING_PYTHON3 ) +endif() + if( KICAD_SCRIPTING_WXPYTHON ) add_definitions( -DKICAD_SCRIPTING_WXPYTHON ) endif() diff --git a/Documentation/development/compiling.md b/Documentation/development/compiling.md index d2c55573f7..4de0def682 100644 --- a/Documentation/development/compiling.md +++ b/Documentation/development/compiling.md @@ -156,6 +156,11 @@ This options is enabled by default. The KICAD_SCRIPTING_MODULES option is used to enable building and installing the Python modules supplied by KiCad. This option is enabled by default. +## Python 3 Scripting Support ## {#python3} + +The KICAD_SCRIPTING_PYTHON3 option is used to enable building of the Python 3 interface instead +of Python 2. This option is disabled by default. + ## wxPython Scripting Support ## {#wxpython_opt} The KICAD_SCRIPTING_WXPYTHON option is used to enable building the wxPython interface into diff --git a/common/dialog_about/dialog_about.cpp b/common/dialog_about/dialog_about.cpp index 00f4b9e55e..0af42f8dd2 100644 --- a/common/dialog_about/dialog_about.cpp +++ b/common/dialog_about/dialog_about.cpp @@ -540,6 +540,13 @@ void DIALOG_ABOUT::buildVersionInfoData( wxString& aMsg, bool aFormatHtml ) aMsg << OFF; #endif + aMsg << indent4 << "KICAD_SCRIPTING_PYTHON3="; +#ifdef KICAD_SCRIPTING_PYTHON3 + aMsg << ON; +#else + aMsg << OFF; +#endif + aMsg << indent4 << "KICAD_SCRIPTING_WXPYTHON="; #ifdef KICAD_SCRIPTING_WXPYTHON aMsg << ON;