From 16c5957f8c33f1be56082991d27860248a1a66d9 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 9 Oct 2015 12:01:37 -0400 Subject: [pkg] skip leap-deps in sumo too --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 16e39fb4..e2f975a2 100755 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ import hashlib import sys import os import re +import sys if not sys.version_info[0] == 2: print("[ERROR] Sorry, Python 3 is not supported (yet). " @@ -150,7 +151,7 @@ def freeze_pkg_ver(path, version_short, version_full): cmdclass["freeze_debianver"] = freeze_debianver parsed_reqs = utils.parse_requirements() -if utils.is_develop_mode(): +if utils.is_develop_mode() or IS_SUMO: print("") print ("[WARNING] Skipping leap-specific dependencies " "because development mode is detected.") @@ -270,6 +271,12 @@ class cmd_build(versioneer_build): copy_reqs(self.build_lib) +if sys.argv[:1] == '--sumo': + IS_SUMO = True +else: + IS_SUMO = False + + class cmd_sdist(versioneer_sdist): user_options = versioneer_sdist.user_options + \ -- cgit v1.2.3