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
|
||||
# -*- coding: UTF-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
import sys
|
||||
from glob import glob
|
||||
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",
|
||||
|
|
Loading…
Reference in a new issue