From 54761bbd13cdb4f0ec405cd47c2d6009c5ca0281 Mon Sep 17 00:00:00 2001 From: ndparker Date: Sun, 11 Oct 2015 15:19:19 +0200 Subject: [PATCH] fix handling of packages without dev revisions --- _setup/py2/setup.py | 2 ++ _setup/py3/setup.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/_setup/py2/setup.py b/_setup/py2/setup.py index b2fcde8..8b15d49 100644 --- a/_setup/py2/setup.py +++ b/_setup/py2/setup.py @@ -369,6 +369,8 @@ def run(config=('package.cfg',), ext=None, script_args=None, manifest_only=0): revision = pkg.get('version.revision', '').strip() if revision: revision = int(revision) + else: + revision = 0 kwargs = { 'name': pkg['name'], diff --git a/_setup/py3/setup.py b/_setup/py3/setup.py index 8a30540..bb1e2ee 100644 --- a/_setup/py3/setup.py +++ b/_setup/py3/setup.py @@ -374,6 +374,8 @@ def run(config=('package.cfg',), ext=None, script_args=None, manifest_only=0): revision = pkg.get('version.revision', '').strip() if revision: revision = int(revision) + else: + revision = 0 kwargs = { 'name': pkg['name'],