kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=63f69a403903d398d637067441c496f7dc24545f
commit 63f69a403903d398d637067441c496f7dc24545f Author: Kai Huuhko <[email protected]> Date: Sat May 10 10:51:15 2014 +0300 setup.py: Add git commit count to dev build version string --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index 2163fed..d1906e4 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,15 @@ script_path = os.path.dirname(os.path.abspath(__file__)) VERSION = "1.10" RELEASE = "1.9.99" +# Add git commit count for dev builds +if RELEASE.split(".")[2] == "99": + call = subprocess.Popen( + ["git", "log", "--oneline"], stdout=subprocess.PIPE) + out, err = call.communicate() + log = out.decode("utf-8").strip() + if log: + ver = log.count("\n") + RELEASE += "a" + str(ver) # dependencies CYTHON_MIN_VERSION = "0.19" --
