[stable-2.12] Fix package-data sanity test for newer setuptools.

(cherry picked from commit 3a662ef2c1)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/76968/head
Matt Clay 4 years ago
parent f574333395
commit 88cf272df0

@ -223,8 +223,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