File tree 1 file changed +1
-15
lines changed 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 44
44
from pip ._internal .pyproject import load_pyproject_toml , make_pyproject_path
45
45
from pip ._internal .req .req_uninstall import UninstallPathSet
46
46
from pip ._internal .utils .deprecation import LegacyInstallReason , deprecated
47
- from pip ._internal .utils .direct_url_helpers import (
48
- direct_url_for_editable ,
49
- direct_url_from_link ,
50
- )
51
47
from pip ._internal .utils .hashes import Hashes
52
48
from pip ._internal .utils .misc import (
53
49
ConfiguredBuildBackendHookCaller ,
@@ -779,24 +775,14 @@ def install(
779
775
780
776
if self .is_wheel :
781
777
assert self .local_file_path
782
- direct_url = None
783
- # TODO this can be refactored to direct_url = self.download_info
784
- if self .editable :
785
- direct_url = direct_url_for_editable (self .unpacked_source_directory )
786
- elif self .original_link :
787
- direct_url = direct_url_from_link (
788
- self .original_link ,
789
- self .source_dir ,
790
- self .original_link_is_in_wheel_cache ,
791
- )
792
778
install_wheel (
793
779
self .name ,
794
780
self .local_file_path ,
795
781
scheme = scheme ,
796
782
req_description = str (self .req ),
797
783
pycompile = pycompile ,
798
784
warn_script_location = warn_script_location ,
799
- direct_url = direct_url ,
785
+ direct_url = self . download_info if self . original_link else None ,
800
786
requested = self .user_supplied ,
801
787
)
802
788
self .install_succeeded = True
You can’t perform that action at this time.
0 commit comments