summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-10-09 12:01:37 -0400
committerKali Kaneko <kali@leap.se>2015-10-09 15:03:21 -0400
commit16c5957f8c33f1be56082991d27860248a1a66d9 (patch)
tree9d987d3317b7f03985ab30129e1bf1c6552d64b4 /setup.py
parent88650850f95dba88cb4026a37d10285021ffbc4f (diff)
[pkg] skip leap-deps in sumo too
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py9
1 files changed, 8 insertions, 1 deletions
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 + \