always check for files in site-packages - add simple test for installing twice

This commit is contained in:
Ilan Schnell 2020-04-04 14:33:28 -05:00
parent a0fe4112d1
commit 0c3bc448e1
2 changed files with 5 additions and 1 deletions

View File

@ -113,7 +113,7 @@ def handle_install_request(script, requirement, options):
# Check which packages got installed
retval["install"] = []
for path in result.files_created:
for path in os.listdir(script.site_packages_path):
if path.endswith(".dist-info"):
name, version = (
os.path.basename(path)[:-len(".dist-info")]

View File

@ -9,9 +9,13 @@ cases:
-
request:
- install: simple
- install: dep
response:
- state:
- simple 0.2.0
- state:
- dep 0.1.0
- simple 0.2.0
-
request:
- install: base