Fix package-data sanity test for newer setuptools.

pull/58288/head
Matt Clay 2 years ago
parent ef4c5cd61b
commit 3a662ef2c1

@ -233,8 +233,9 @@ def install_sdist(tmp_dir, sdist_dir):
raise Exception('sdist install failed:\n%s' % stderr)
# Determine the prefix for the installed files
match = re.search('^creating (%s/.*?/(?:site|dist)-packages)/ansible$' %
match = re.search('^copying .* -> (%s/.*?/(?:site|dist)-packages)/ansible$' %
tmp_dir, stdout, flags=re.M)
return match.group(1)

Loading…
Cancel
Save