diff options
author | Chris Hunt <chrahunt@gmail.com> | 2019-11-06 20:54:47 -0500 |
---|---|---|
committer | Chris Hunt <chrahunt@gmail.com> | 2019-11-07 12:43:39 -0500 |
commit | 9de8a6d598b100071e212c7d8b40643223cf05ec (patch) | |
tree | c94525fc2210de28e728e0f233f06bc86f565bc0 | |
parent | 16684fbc28b17eff558e20813e06dc546780eea6 (diff) | |
download | pip-9de8a6d598b100071e212c7d8b40643223cf05ec.tar.gz |
Create scheme unconditionally on install
-rw-r--r-- | src/pip/_internal/req/req_install.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py index 8033c69a4..fb378d28f 100644 --- a/src/pip/_internal/req/req_install.py +++ b/src/pip/_internal/req/req_install.py @@ -852,6 +852,15 @@ class InstallRequirement(object): pycompile=True # type: bool ): # type: (...) -> None + scheme = distutils_scheme( + self.name, + user=use_user_site, + home=home, + root=root, + isolated=self.isolated, + prefix=prefix, + ) + global_options = global_options if global_options is not None else [] if self.editable: self.install_editable( @@ -862,14 +871,11 @@ class InstallRequirement(object): use_user_site=use_user_site, ) return + if self.is_wheel: version = wheel.wheel_version(self.source_dir) wheel.check_compatibility(version, self.name) - scheme = distutils_scheme( - self.name, user=use_user_site, home=home, root=root, - isolated=self.isolated, prefix=prefix, - ) self.move_wheel_files( self.source_dir, scheme=scheme, |