Changes affecting middleware and repo plugins.

19 views
Skip to first unread message

Gregory Neagle

unread,
Feb 20, 2024, 2:06:52 PMFeb 20
to munki-dev, 'Gregory Neagle' via munki-discuss
Munki makes use of Python’s “imp” module to import middleware and repo plugin files, if present. “imp” has been deprecated for a while in Python 3, and is not included in Python 3.12 (the current version of Python).

If Munki’s Python is ever to be updated past 3.10.x, a number of changes must be made, and replacing the use of the “imp” module is one of those changes.

As of this commit https://github.com/munki/munki/commit/1850dbe0773c90dafd9d8c32a35660c85bb5a34d in the Munki6dev branch, the use of “imp” has been replaced with “importlib.util”. It’s not a trivial replacement — the replacement code is more complex.

If you use middleware or repo plugins (I know SimpleMDM admins probably do), please test these changes.

-Greg


Reply all
Reply to author
Forward
0 new messages