@classmethod
    def from_packages(cls, pool, packages, reason, reason_details="", job=None, id=-1):
        literals = [p.id for p in packages]
        if len(packages) > 0:
            return cls(pool, literals, reason, reason_details, job, id, packages[0].version_factory)
        else:
            return cls(pool, literals, reason, reason_details, job, id)
dataset/ETHPy150Open enthought/depsolver/depsolver/solver/rule.py/PackageRule.from_packages/original