Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

added envvar SCRAPY_VERSION_FROM_HG=1 to extras/makedeb.py script

Pablo Hoffman841007b5c5ce
diff --git a/extras/makedeb.py b/extras/makedeb.py
index 054204cf2..ca1b69470 100644
--- a/extras/makedeb.py
+++ b/extras/makedeb.py
@@ -16,7 +16,9 @@ def build(suffix):
with open(ifn, 'w') as of:
of.write(s)
- check_call('debchange -m -D unstable --force-distribution -v $(python setup.py --version)-r$(hg tip --template "{rev}")+$(date +%s) "Automatic build"', shell=True)
+ env={'SCRAPY_VERSION_FROM_HG': '1'}
+ check_call('debchange -m -D unstable --force-distribution -v $(python setup.py --version)+$(date +%s) "Automatic build"', \
+ shell=True, env=env)
check_call('debuild -us -uc -b', shell=True)
def clean(suffix):