def METHOD_NAME(self, packages=None):
    cmd = ["install"]
    cmd.extend(packages or self.name)
    if self.path:
        cmd.append("--root")
        cmd.append(self.path)
    if self.version:
        cmd.append("--version")
        cmd.append(self.version)
    return self._exec(cmd)