parameters: (self, dist)
return_statement: return py_compat and compatible_platforms(dist.platform, self.platform)
docstring: Is distribution `dist` acceptable for this environment?
  
          The distribution must match the platform and python version
          requirements specified when this environment was created, or False
          is returned.
docstring_summary: Is distribution `dist` acceptable for this environment?
docstring_tokens: Is distribution dist acceptable for this environment?
function: def can_add(self, dist):
          """Is distribution `dist` acceptable for this environment?
  
          The distribution must match the platform and python version
          requirements specified when this environment was created, or False
          is returned.
          """
          py_compat = (
              self.python is None
              or dist.py_version is None
              or dist.py_version == self.python
          )
          return py_compat and compatible_platforms(dist.platform, self.platform)
function_tokens: def can_add ( self , dist ) : py_compat = ( self . python is None or dist . py_version is None or dist . py_version == self . python ) return py_compat and compatible_platforms ( dist . platform , self . platform )