setup.py: Change format of the version number (illegal in rpm and buggy in deb packages).

This commit is contained in:
Valentin Lorentz 2013-09-11 19:13:59 +02:00
parent 0cb22ce6be
commit 0fb2ee1bf7

View File

@ -55,7 +55,7 @@ except:
pass pass
if not version: if not version:
from time import gmtime, strftime from time import gmtime, strftime
version = 'installed on ' + strftime("%Y-%m-%dT%H:%M:%S+0000", gmtime()) version = 'installed on ' + strftime("%Y-%m-%dT%H-%M-%S", gmtime())
try: try:
os.unlink(os.path.join('src', 'version.py')) os.unlink(os.path.join('src', 'version.py'))
except OSError: # Does not exist except OSError: # Does not exist