diff options
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
| -rw-r--r-- | Library/Homebrew/requirements/python_dependency.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index 90bd14fa6..0c182b66b 100644 --- a/Library/Homebrew/requirements/python_dependency.rb +++ b/Library/Homebrew/requirements/python_dependency.rb @@ -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: |
