Explanatory comment for Editable Git install
This patch is a follow up for patch: I3573c067f63a09f22377612f53c80c80252965e4 Comment explains the string matching lines for the pip freeze output. Change-Id: Ifc5b2ae002859c1ca7405c8e1f64380b311e983d
This commit is contained in:
parent
2428945c21
commit
f51be0504b
@ -106,6 +106,10 @@ def get_installed_packages(tox_python):
|
||||
frozen_pkgs = subprocess.check_output(
|
||||
[tox_python, '-m', 'pip', '-qqq', 'freeze']
|
||||
)
|
||||
# Matches strings of the form:
|
||||
# 1. '<package_name>==<version>'
|
||||
# 2. '# Editable Git install with no remote (<package_name>==<version>)'
|
||||
# both results: <package_name>
|
||||
return [x[x.find('(') + 1:].split('==')[0]
|
||||
for x in frozen_pkgs.split('\n') if '==' in x]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user