use bzr_version
This commit is contained in:
parent
79541dc38e
commit
21b75ac85f
1 changed files with 12 additions and 4 deletions
14
setup.py
14
setup.py
|
@ -1,18 +1,26 @@
|
||||||
# setup.py
|
# setup.py
|
||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
# vi:si:et:sw=4:sts=4:ts=4
|
# vi:si:et:sw=4:sts=4:ts=4
|
||||||
import sys
|
try:
|
||||||
from glob import glob
|
from setuptools import setup
|
||||||
|
except:
|
||||||
from distutils.core import setup
|
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",
|
setup(name="oxtimeline",
|
||||||
|
version="1.0.%s" % get_bzr_version() ,
|
||||||
scripts = [
|
scripts = [
|
||||||
'bin/oxtimeline',
|
'bin/oxtimeline',
|
||||||
],
|
],
|
||||||
packages = [
|
packages = [
|
||||||
'oxtimeline',
|
'oxtimeline',
|
||||||
],
|
],
|
||||||
version="1.0",
|
|
||||||
author="0x2620",
|
author="0x2620",
|
||||||
author_email="0x2620@0x2620.org",
|
author_email="0x2620@0x2620.org",
|
||||||
description="extract timelines from videos",
|
description="extract timelines from videos",
|
||||||
|
|
Loading…
Reference in a new issue