Mercurial > hg > camir-ismir2012
comparison toolboxes/_python_lib/pylast/setup.py @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
| author | Daniel Wolff |
|---|---|
| date | Fri, 19 Aug 2016 13:07:06 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:cc4b1211e677 |
|---|---|
| 1 #!/usr/bin/env python | |
| 2 | |
| 3 from distutils.core import setup | |
| 4 | |
| 5 import os | |
| 6 def get_build(): | |
| 7 path = "./.build" | |
| 8 | |
| 9 if os.path.exists(path): | |
| 10 fp = open(path, "r") | |
| 11 build = eval(fp.read()) | |
| 12 if os.path.exists("./.increase_build"): | |
| 13 build += 1 | |
| 14 fp.close() | |
| 15 else: | |
| 16 build = 1 | |
| 17 | |
| 18 fp = open(path, "w") | |
| 19 fp.write(str(build)) | |
| 20 fp.close() | |
| 21 | |
| 22 return str(build) | |
| 23 | |
| 24 setup(name = "pylast", | |
| 25 version = "0.5." + get_build(), | |
| 26 author = "Amr Hassan <amr.hassan@gmail.com>", | |
| 27 description = "A Python interface to Last.fm (and other API compatible social networks)", | |
| 28 author_email = "amr.hassan@gmail.com", | |
| 29 url = "http://code.google.com/p/pylast/", | |
| 30 py_modules = ("pylast",), | |
| 31 license = "Apache2" | |
| 32 ) |
