Infinidat / infi.systray

Windows system tray icon
BSD 3-Clause "New" or "Revised" License
215 stars 40 forks source link

Disable import of pkg_resources for Python 3.3+ #10

Closed fireph closed 6 years ago

fireph commented 6 years ago
__import__("pkg_resources").declare_namespace(__name__)

is deprecated in Python 3.3+ and causes issues with pyinstaller (mainly having to import the entire pkg_resources package, which is quite large). So checking the version number and not doing the import for these versions is likely the best solution to keep Python 2.x compatibility.

I have tested this in Python 3.6.5 and everything works as expected with this patch.

fireph commented 6 years ago

created a new pull request