mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-22 17:29:19 +00:00
Try to include svn revision number in version if available.
This commit is contained in:
parent
1c9c765cb1
commit
fdb07b4929
13
setup.py
13
setup.py
@ -44,6 +44,17 @@ import os
|
||||
|
||||
python_version = platform.python_version()[0:3]
|
||||
|
||||
# Try to get SVN revision number to append to version
|
||||
revision_string = ""
|
||||
try:
|
||||
stdout = os.popen("svn info")
|
||||
for line in stdout:
|
||||
if line.split(" ")[0] == "Revision:":
|
||||
revision_string = "r%s" % line.split(" ")[1].strip()
|
||||
break
|
||||
except:
|
||||
pass
|
||||
|
||||
# The libtorrent extension
|
||||
_extra_compile_args = [
|
||||
"-Wno-missing-braces",
|
||||
@ -162,7 +173,7 @@ for path in glob.glob('deluge/plugins/*'):
|
||||
setup(
|
||||
name = "deluge",
|
||||
fullname = "Deluge Bittorent Client",
|
||||
version = "0.6.0.0",
|
||||
version = "0.6.0.0" + revision_string,
|
||||
author = "Andrew Resch, Marcos Pinto",
|
||||
author_email = "andrewresch@gmail.com, markybob@dipconsultants.com",
|
||||
description = "GTK+ bittorrent client",
|
||||
|
Loading…
x
Reference in New Issue
Block a user