mirror of https://github.com/pypa/pip
always check for files in site-packages - add simple test for installing twice
This commit is contained in:
parent
a0fe4112d1
commit
0c3bc448e1
|
@ -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")]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue