class_docstr: Adapt a pkg_resources.Distribution to simply return the project
  name as the 'requirement' so that scripts will work across
  multiple versions.
  
  >>> from pkg_resources import Distribution
  >>> dist = Distribution(project_name='foo', version='1.0')
  >>> str(dist.as_requirement())
  'foo==1.0'
  >>> adapted_dist = VersionlessRequirement(dist)
  >>> str(adapted_dist.as_requirement())
  'foo'
class_docstr_tok: ["Adapt","a","pkg_resources.Distribution","to","simply","return","the","project","name","as","the","'requirement","'","so","that","scripts","will","work","across","multiple","versions",".",">",">",">","from","pkg_resources","import","Distribution",">",">",">","dist","=","Distribution","(","project_name='foo","'",",","version=","'","1.0","'",")",">",">",">","str","(","dist.as_requirement","(",")",")","'foo==1.0'",">",">",">","adapted_dist","=","VersionlessRequirement","(","dist",")",">",">",">","str","(","adapted_dist.as_requirement","(",")",")","'foo","'"]
code: def as_requirement(self):
      return self.project_name
  
imports: from distutils.util import convert_path
  from distutils import log
  from distutils.errors import DistutilsError, DistutilsOptionError
  import os
  import glob
  import io
  from setuptools.extern import six
  import pkg_resources
  from setuptools.command.easy_install import easy_install
  from setuptools import namespaces
  import setuptools
label_desc: Use image node_id 3 for calling the VersionlessRequirement obj's underlying member method code with example usage: obj.as_requirement() and returns: self