annotate 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
rev   line source
Daniel@0 1 #!/usr/bin/env python
Daniel@0 2
Daniel@0 3 from distutils.core import setup
Daniel@0 4
Daniel@0 5 import os
Daniel@0 6 def get_build():
Daniel@0 7 path = "./.build"
Daniel@0 8
Daniel@0 9 if os.path.exists(path):
Daniel@0 10 fp = open(path, "r")
Daniel@0 11 build = eval(fp.read())
Daniel@0 12 if os.path.exists("./.increase_build"):
Daniel@0 13 build += 1
Daniel@0 14 fp.close()
Daniel@0 15 else:
Daniel@0 16 build = 1
Daniel@0 17
Daniel@0 18 fp = open(path, "w")
Daniel@0 19 fp.write(str(build))
Daniel@0 20 fp.close()
Daniel@0 21
Daniel@0 22 return str(build)
Daniel@0 23
Daniel@0 24 setup(name = "pylast",
Daniel@0 25 version = "0.5." + get_build(),
Daniel@0 26 author = "Amr Hassan <amr.hassan@gmail.com>",
Daniel@0 27 description = "A Python interface to Last.fm (and other API compatible social networks)",
Daniel@0 28 author_email = "amr.hassan@gmail.com",
Daniel@0 29 url = "http://code.google.com/p/pylast/",
Daniel@0 30 py_modules = ("pylast",),
Daniel@0 31 license = "Apache2"
Daniel@0 32 )