def is_develop_egg(dist):
 meta_provider = dist._provider
 egg_info_dir = os.path.dirname(meta_provider.egg_info)
 egg_name = pkg_resources.to_filename(dist.project_name)
 return (meta_provider.egg_info.endswith((egg_name + '.egg-info')) and os.path.exists(os.path.join(egg_info_dir, 'setup.py')))

def is_develop_egg ( dist ) : meta_provider = dist . _provider egg_info_dir = os . path . dirname ( meta_provider . egg_info ) egg_name = pkg_resources . to_filename ( dist . project_name ) return ( meta_provider . egg_info . endswith ( ( egg_name + '.egg-info' ) ) and os . path . exists ( os . path . join ( egg_info_dir , 'setup.py' ) ) )
is the distribution installed in development mode .