Do not import pkg_resources if not needed
The new version of pkg_resources come with a _vendor directory which is not bundled by py2exe. As when tryton is frozen, pkg_resources is not needed, it is better to import it only when needed. This will allow to build tryton with py2exe with recent setuptools installed.