```ruby
if build.with? "python3"
  depends_on "sip" => "with-python3"
else
  depends_on "sip" => "with-python"
end
```
is probably what we want.