ok, I see you got these lines from  `pkg_resources.find_on_path`.
I would remove the comment about egg-info, and `dist-info` will always be a directory.
'egg-info' can be a file (for pure-distutils), or egg-info directories for pip installs.