summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-06-22 19:31:15 +0000
committerGerrit Code Review <review@openstack.org>2012-06-22 19:31:15 +0000
commit2db4e6855ef82c18e95bdf4c0b8af52269624c0a (patch)
tree4c138c4401ee9fc9460d8297d078671a0e11c3e7 /openstack
parentdd331aa9fa43bbb02d8aa4ff63622d23b8aed1dd (diff)
parentc986a17be967fee897897cb8abc86b27d2426f75 (diff)
downloadoslo-2db4e6855ef82c18e95bdf4c0b8af52269624c0a.tar.gz
oslo-2db4e6855ef82c18e95bdf4c0b8af52269624c0a.tar.xz
oslo-2db4e6855ef82c18e95bdf4c0b8af52269624c0a.zip
Merge "Skip argparse when injecting requirements."
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/setup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/openstack/common/setup.py b/openstack/common/setup.py
index 429ba35..6b34417 100644
--- a/openstack/common/setup.py
+++ b/openstack/common/setup.py
@@ -22,6 +22,7 @@ Utilities with minimum-depends for use in setup.py
import os
import re
import subprocess
+import sys
from setuptools.command import sdist
@@ -76,6 +77,10 @@ def parse_requirements(requirements_files=['requirements.txt',
# -f lines are for index locations, and don't get used here
elif re.match(r'\s*-f\s+', line):
pass
+ # argparse is part of the standard library starting with 2.7
+ # adding it to the requirements list screws distro installs
+ elif line == 'argparse' and sys.version_info >= (2, 7):
+ pass
else:
requirements.append(line)