From 1e7370e22b49c76bf165267f0c74d2d3b5b081ea Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Wed, 7 Feb 2018 19:48:47 -0500 Subject: [PATCH] Switch to bindep 2.6.0 Change-Id: Ice88bfc7cc45a1b05c2f55d9df92f88fe13fd599 --- scripts/bindep.depends.patch | 48 ------------------------------------ scripts/install.sh | 6 +---- scripts/requirements.sh | 5 +--- 3 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 scripts/bindep.depends.patch diff --git a/scripts/bindep.depends.patch b/scripts/bindep.depends.patch deleted file mode 100644 index d2f20f6..0000000 --- a/scripts/bindep.depends.patch +++ /dev/null @@ -1,48 +0,0 @@ -50c50,52 -< selector = ws '[' profile:p1 (ws profile)*:p2 ']' -> [p1] + p2 ---- -> profiles = '(' (ws? profile)*:p ws? ')' -> p -> group = profiles | profile -> selector = ws '[' (ws? group)*:p ws? ']' -> p -141c143,147 -< for sense, profile in rule[1]: ---- -> for group in rule[1]: -> if isinstance(group, list): -> user.append(group) -> continue -> sense, profile = group -161a168,169 -> group_found = False -> group_match_found = False -163c171,177 -< for sense, profile in partition_rule: ---- -> for group in partition_rule: -> if isinstance(group, list): -> group_found = True -> if self._match_all(group, profiles): -> group_match_found = True -> continue -> sense, profile = group -172c186,189 -< if not negative and (match_found or not positive): ---- -> if not negative: -> if group_match_found or match_found: -> return True -> if not group_found and not positive: -174a192,204 -> -> def _match_all(self, partition_rules, profiles): -> """Evaluate rules. Do they all match the profiles? -> -> :return Result True if all profiles match else False -> """ -> def matches(sense, profile, profiles): -> return sense if profile in profiles else not sense -> -> for sense, profile in partition_rules: -> if not matches(sense, profile, profiles): -> return False -> return True diff --git a/scripts/install.sh b/scripts/install.sh index 7b5d8d5..63c0a13 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -51,17 +51,13 @@ if [[ "${PLUGIN}" == "no" ]]; then $(dirname $0)/create_user.sh $(dirname $0)/setup_pip.sh $(dirname $0)/pip_install.sh \ - bindep==2.5.0 \ + bindep==2.6.0 \ cryptography \ pymysql \ python-memcached \ uwsgi fi -# NOTE(SamYaple): Remove when bindep>2.5.0 is released -patch /var/lib/openstack/lib/python*/site-packages/bindep/depends.py < /opt/loci/scripts/bindep.depends.patch -rm -f /var/lib/openstack/lib/python*/site-packages/bindep/depends.pyc - if [[ ${PROJECT} == 'nova' ]]; then $(dirname $0)/pip_install.sh libvirt-python fi diff --git a/scripts/requirements.sh b/scripts/requirements.sh index 90a0aa8..a6177d4 100755 --- a/scripts/requirements.sh +++ b/scripts/requirements.sh @@ -19,10 +19,7 @@ case ${distro} in esac $(dirname $0)/setup_pip.sh -pip install bindep==2.5.0 -# NOTE(SamYaple): Remove when bindep>2.5.0 is released -patch /var/lib/openstack/lib/python*/site-packages/bindep/depends.py < /opt/loci/scripts/bindep.depends.patch -rm -f /var/lib/openstack/lib/python*/site-packages/bindep/depends.pyc +pip install bindep==2.6.0 $(dirname $0)/install_packages.sh $(dirname $0)/clone_project.sh