Represents an override for a virtual package.
An override can be build using
- Override.default_env_var()
for overriding the detection with the default environment variable,
- Override.env_var(str)
for overriding the detection with a custom environment variable,
- Override.string(str)
for passing the version directly, or
__eq__
Returns True if the Overrides are equal, False otherwise.
__repr__
Returns a representation of the Override.
__str__
Returns string representation of the Override.
default_env_var
classmethod
Returns a new instance to indicate that the default environment variable should overwrite the detected information from the host if specified.
env_var
classmethod
Returns the environment variable override for the given environment variable.
string
classmethod
Returns the override for the given string.