Il giorno 01/giu/2011, alle ore 10.38, Łukasz Wróblewski ha scritto:

> I agree.
> 
> This function was only illustrate what I mean ;)
> 

(current ip)

uwsgi.version_info will return ALWAYS a tuple of 5 elements:

(BASE, MAJOR, MINOR, REVISION, CUSTOM)

For 0.9.8-dev the touple will be

(0, 9, 8, 0, 'dev-revXXX')

for 0.9.7.2

(0, 9, 7, 2, '')

for 0.9.8 will be

(0, 9, 8, 0, '')

If you want to add a custom value, set it in "append_version" build profile 
option

append_version = foobar

uwsgi.version will be

'0.9.8-foobar'

uwsgi.version_info wil be

(0, 9, 8, 0, 'foobar')


--
Roberto De Ioris
http://unbit.it

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to