use bzr_version

This commit is contained in:
j 2010-11-25 11:32:10 +01:00
parent 79541dc38e
commit 21b75ac85f
1 changed files with 12 additions and 4 deletions

View File

@ -1,18 +1,26 @@
# setup.py
# -*- coding: UTF-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import sys
from glob import glob
from distutils.core import setup
try:
from setuptools import setup
except:
from distutils.core import setup
def get_bzr_version():
import os
rev = int(os.popen('bzr revno').read())
if rev:
return u'%s' % rev
return u'unknown'
setup(name="oxtimeline",
version="1.0.%s" % get_bzr_version() ,
scripts = [
'bin/oxtimeline',
],
packages = [
'oxtimeline',
],
version="1.0",
author="0x2620",
author_email="0x2620@0x2620.org",
description="extract timelines from videos",