BLD: Don't check dependencies on egg_info for pip. Closes #1267.

Don't check dependencies when it's an egg_info command. This should fix problems with pip and dependency resolutions.