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:
parent
8bea736651
commit
dac6931e81
@ -376,7 +376,7 @@ Job::setInjectedPreScript( const char* script )
|
||||
} // namespace Python
|
||||
} // namespace Calamares
|
||||
|
||||
PYBIND11_MODULE( libcalamares, m )
|
||||
PYBIND11_EMBEDDED_MODULE( libcalamares, m )
|
||||
{
|
||||
populate_libcalamares( m );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user