Scrapy, a fast high-level web crawling & scraping framework for Python.
use mercurial revision to construct version, when building a non-final version
Pablo Hoffman2d3d5b6abab6
diff --git a/setup.py b/setup.pyindex 35bac8a46..9e95e5666 100644--- a/setup.py+++ b/setup.py@@ -76,6 +76,13 @@ if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':# Dynamically calculate the version based on scrapy.__version__version = __import__('scrapy').__version__+if 'dev' in version:+ try:+ from subprocess import Popen, PIPE+ hgrev = Popen(['hg', 'tip', '--template={rev}'], stdout=PIPE).communicate()[0]+ version = version.replace('-dev', '-r%s' % hgrev)+ except:+ passsetup_args = {'name': 'Scrapy',