<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"># HG changeset patch<br style="" class=""># User Peter Elmers <peter.elmers@yahoo.com><br style="" class=""># Date 1432680605 25200<br style="" class="">#      Tue May 26 15:50:05 2015 -0700<br style="" class=""># Node ID 9afa1d6c9da357b3f61f7e4eb4b08390c4bc5fd1<br style="" class=""># Parent  ec935041d1ff0fd2aa8cb666d79e6dcca398ddba<br style="" class="">version: declare a default version in setup.py (issue3924)<br style="" class=""><br style="" class="">Leaving version as "unknown" breaks `pip freeze`, so we should default the<br style="" class="">version to the current version and let it update itself if a more precise one<br style="" class="">can be pulled from version control.<br style="" class=""><br style="" class="">diff -r ec935041d1ff -r 9afa1d6c9da3 setup.py<br style="" class="">--- a/setup.py    Wed Apr 01 13:34:58 2015 -0500<br style="" class="">+++ b/setup.py    Tue May 26 15:50:05 2015 -0700<br style="" class="">@@ -2,7 +2,7 @@<br style="" class=""> from distutils.core import setup<br style="" class=""> <br style="" class=""> # query Mercurial for version number<br style="" class="">-version = 'unknown'<br style="" class="">+version = '1.6'<br style="" class=""> if os.path.isdir('.hg'):<br style="" class="">     cmd = "hg id -i -t"<br style="" class="">     l = os.popen(cmd).read().split()<br style="" class=""><div id="yui_3_16_0_1_1432680670346_4218" dir="ltr"><br></div></div></body></html>