SERVER-110068: Modernize dynamic module loading to work with Python3.12
import imp was removed from Python 3.12 which prevents the building of mongodb.
Tested in FreeBSD ports.
(I tried to create a jira ticket but the login didn't work for me so if there is a ticket needed i would appreciate if someone else can create that)
@fliiiix, i want to work on this please assign this to me.
@SinghCod3r What do you mean????
SCons was removed, but I think this is still an issue. Leaving this PR open and bumping SERVER-110068.
I saw you already signed the contributor's agreement, thanks!
Aside: Publicly we only support Python 3.10 right now for building MongoDB
It's also deprecated in Python 3.10 :) And i build it on FreeBSD with Python 3.12 🙈