Hi Philipp, Philipp von Weitershausen wrote:
Stefan Behnel wrote:
As a work-around, you could make it (1,0,-1,0) and special case the version string parser to represent "beta" as -1. I think that's a good idea. Any objections?
No idea why you need this number comparison.
It's meant for version specific code. If we have a bug (or a new feature) somewhere and code needs it to work or can work around it, it should be able to do things like if lxml.etree.LXML_VERSION < (1,0,2): workAroundBugOrComplain()
As said, setuptools gets this right anyways.
We should not force software that uses lxml to rely on setuptools. Too many people do not have it installed. It's not required to run lxml, even ordinary users can install lxml from RPMs, .deb or windows installers. Stefan