[Distutils] Pep 440 question/clarification Version specifiers no "Or" available
Matthias Bussonnier
bussonniermatthias at gmail.com
Thu Sep 8 18:47:23 EDT 2016
Hi all,
In the line of recent discussions[1] about releasing some packages
only for some versions of Python.
I was reading pep 440 and in particular the "Version specifier section".
The following sentence caught my eye:
> The comma (",") is equivalent to a logical and operator: a candidate version must match all given version clauses in order to match the specifier as a whole.
Is there no way to have an "or" ? It seem to me that it might be
useful for package wanting to express compatibility with `2.6`, `2.7`
or `>3.3` for example, in the form `=~2.6 <or operator> =~3.3`.
I completely agree that the use case is _limited_ and likely rare, I
was just wondering if I'm missing something, if it was an oversight
and if not if adding a section detailing that "or" was not considered,
or that "or" was explicitly not included for X,Y,Z reason would be a
good thing.
Thanks,
--
Matthias
[1]:https://mail.python.org/pipermail/distutils-sig/2016-August/029604.html
More information about the Distutils-SIG
mailing list