Just use a list generator
This commit is contained in:
@@ -70,17 +70,8 @@ class GlanceInstaller(comp.PythonInstallComponent):
|
|||||||
return list(CONFIGS)
|
return list(CONFIGS)
|
||||||
|
|
||||||
def _filter_pip_requires(self, fn, lines):
|
def _filter_pip_requires(self, fn, lines):
|
||||||
new_lines = []
|
return [l for l in lines
|
||||||
for line in lines:
|
if not utils.has_any(l.lower(), 'swift', 'keystoneclient')]
|
||||||
# Anvil handles installing these if needed
|
|
||||||
# and not setup.py
|
|
||||||
if utils.has_any(line.lower(), 'swift', 'keystoneclient'):
|
|
||||||
continue
|
|
||||||
elif line.strip().startswith("-e"):
|
|
||||||
continue
|
|
||||||
else:
|
|
||||||
new_lines.append(line)
|
|
||||||
return new_lines
|
|
||||||
|
|
||||||
def pre_install(self):
|
def pre_install(self):
|
||||||
comp.PythonInstallComponent.pre_install(self)
|
comp.PythonInstallComponent.pre_install(self)
|
||||||
|
Reference in New Issue
Block a user