Merge pull request #2520 from DietmarSchwertberger/ISSUE_2519

remove demo dependency on distutils; fixes issue 2519
This commit is contained in:
Scott Talbert
2024-01-24 19:21:48 -05:00
committed by GitHub

View File

@@ -56,7 +56,6 @@ import re
import shutil
from threading import Thread
from distutils.version import LooseVersion
import wx
import wx.adv
@@ -2661,7 +2660,7 @@ class MyApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
def OnInit(self):
# Check runtime version
if LooseVersion(version.VERSION_STRING) != LooseVersion(wx.VERSION_STRING):
if version.VERSION_STRING != wx.VERSION_STRING:
wx.MessageBox(caption="Warning",
message="You're using version %s of wxPython, but this copy of the demo was written for version %s.\n"
"There may be some version incompatibilities..."