libcalamares: switch Python to an embedded module

This breaks python scripts that `import libcalamares` running
outside of the framework (e.g. outside of a Calamares job).
This commit is contained in:
Adriaan de Groot 2023-10-24 15:33:26 +02:00
parent 8bea736651
commit dac6931e81

View File

@ -376,7 +376,7 @@ Job::setInjectedPreScript( const char* script )
} // namespace Python } // namespace Python
} // namespace Calamares } // namespace Calamares
PYBIND11_MODULE( libcalamares, m ) PYBIND11_EMBEDDED_MODULE( libcalamares, m )
{ {
populate_libcalamares( m ); populate_libcalamares( m );
} }