[Jakub Wilk, 2010-06-24] > * Piotr Ożarowski <pi...@debian.org>, 2010-06-24, 09:27: >> it gets a little bit messy when minimum required Python version is >> greater than the default one, but it should work, yes (IIRC last year >> someone gave me example where it wouldn't work, but I don't remember it >> now, hopefully it will be pointed out again soon) > > XSPV is currently used for two things: > 1. cdbs/dh7 etc. use it to iterate over Python versions to build, install > etc. stuff.
... which use py{,3}versions command¹ to get the list of supported Python versions [¹] just like all other packages that do not use cdbs/dh7 should do [...] > Here are some real world examples (for 2.X, but that's irrelevant): > > * A module that works perfectly with every Python >= 2.5, but its > documentation generation system required Python 2.6. Build-dep on python > (>= 2.6) is needed, which doesn't mean that modules shouldn't be > byte-compiled for 2.5. python (>= 2.6-1~) | python (>= 2.5) (note that buildds ignore everything after "|") > * A module with no upstream build-system, which works only with Python > 2.5. Build-dep on python normally isn't needed at all, yet one should be > able to specify which Python version are supported by this module. well, right now python is pulled in anyway (via python-central or python-support build dependency). If a package doesn't use helper tools, it doesn't use XS-Python-Version as well. >> example for default=3.1 minimum=3.2 maximum=3.5: >> python-all | python-all (>= 3.2), python-all (<< 3.5), python-all (>= >> 3.1.2-2) >> or even >> python-all (>= 3.1.2-2) | python-all (>= 3.2), python-all (<< 3.5) > > This is neither human readable nor human writable. most packages will have "python3-all (>= 3.1.2-2)" only >> I will implement it in dh_python3 (only ">= X.Y" and "<< X.Y" will be >> taken into account, I will ignore all ".* X\.Y.*" including X.Y-Z)) and >> use it if -V, debian/pyversions, X-Python-Version and XS-Python-Version >> is not available (in that order) > > If you implement this, I will refrain from doing any QA work on python3-* > packages. Have fun. ok, postponing -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100624103545.gw18...@piotro.eu