1from typing
import FrozenSet, Optional, Set
9 """Helper for managing formats from which a package can be installed."""
11 __slots__ = [
"no_binary",
"only_binary"]
15 no_binary: Optional[Set[str]] =
None,
16 only_binary: Optional[Set[str]] =
None,
20 if only_binary
is None:
26 def __eq__(self, other: object) -> bool:
36 return "{}({}, {})".format(
44 "--no-binary / --only-binary option requires 1 argument."
53 if ":none:" not in new:
59 name = canonicalize_name(name)
64 result = {
"binary",
"source"}