@staticmethod
  def _source_roots_for_target(target):
    def root_package_prefix(source_file):
      source = os.path.dirname(source_file)
      return os.path.join(get_buildroot(), target.target_base, source), source.replace(os.sep, '.')
    return set(map(root_package_prefix, target.sources_relative_to_source_root()))
:type target:pants.build_graph.target.Target
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/project_info/tasks/export.py/ExportTask._source_roots_for_target