diff --git a/setup.py b/setup.py index 21aa698..0da7593 100644 --- a/setup.py +++ b/setup.py @@ -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",