Use old #eql? for python reqs, for now

This commit is contained in:
Jack Nagel 2013-06-27 01:43:30 -05:00
parent 10949ad75d
commit 52574240af

View File

@ -342,6 +342,10 @@ class PythonInstalled < Requirement
binary.to_s
end
def eql?(other)
instance_of?(other.class) && hash == other.hash
end
def hash
# Requirements are a ComparableSet. So we define our identity by the
# selected python binary plus the @imports in order to support multiple: