Daniel@0: #!/usr/bin/env python Daniel@0: Daniel@0: from distutils.core import setup Daniel@0: Daniel@0: import os Daniel@0: def get_build(): Daniel@0: path = "./.build" Daniel@0: Daniel@0: if os.path.exists(path): Daniel@0: fp = open(path, "r") Daniel@0: build = eval(fp.read()) Daniel@0: if os.path.exists("./.increase_build"): Daniel@0: build += 1 Daniel@0: fp.close() Daniel@0: else: Daniel@0: build = 1 Daniel@0: Daniel@0: fp = open(path, "w") Daniel@0: fp.write(str(build)) Daniel@0: fp.close() Daniel@0: Daniel@0: return str(build) Daniel@0: Daniel@0: setup(name = "pylast", Daniel@0: version = "0.5." + get_build(), Daniel@0: author = "Amr Hassan ", Daniel@0: description = "A Python interface to Last.fm (and other API compatible social networks)", Daniel@0: author_email = "amr.hassan@gmail.com", Daniel@0: url = "http://code.google.com/p/pylast/", Daniel@0: py_modules = ("pylast",), Daniel@0: license = "Apache2" Daniel@0: )