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