Fix packaging imports in version comparison logic
#8347
+6
−6
Merged