Re: Packaging, supporting both 2.1 and 2.2
* Moshe Zadka
| Unless anyone sees any problem with it, here is what I will use to find out
| the default python on the build system:
| /usr/bin/python -c 'import sys;v=sys.hexversion;print "%s.%s" % ((v>>24)&0xff, (v>>16)&0xff)'
python -c 'import sys; print sys.version[:3]' does the same (but will
break ifwhen minor or major gets bigger than 9.
pythonc -c 'import sys; print "%d.%d" % (sys.version_info[:2])' should
be fine and a lot more readable.
--
Tollef Fog Heen ,''`.
UNIX is user friendly, it's just picky about who its friends are : :' :
`. `'
`-
--
To UNSUBSCRIBE, email to debian-python-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: