def can_add(self, dist):
py_compat = (<EOL>self.python is None<EOL>or dist.py_version is None<EOL>or dist.py_version == self.python<EOL>)<EOL>return py_compat and compatible_platforms(dist.platform, self.platform)<EOL>
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.