34
34
from pip ._internal .utils .deprecation import deprecated
35
35
from pip ._internal .utils .logging import indent_log
36
36
from pip ._internal .utils .misc import (
37
- ARCHIVE_EXTENSIONS , SUPPORTED_EXTENSIONS , normalize_path ,
37
+ ARCHIVE_EXTENSIONS , SUPPORTED_EXTENSIONS , WHEEL_EXTENSION , normalize_path ,
38
38
redact_password_from_url ,
39
39
)
40
40
from pip ._internal .utils .packaging import check_requires_python
41
- from pip ._internal .wheel import Wheel , wheel_ext
41
+ from pip ._internal .wheel import Wheel
42
42
43
43
__all__ = ['FormatControl' , 'PackageFinder' ]
44
44
@@ -781,15 +781,15 @@ def _link_package_versions(self, link, search):
781
781
link , 'unsupported archive format: %s' % ext ,
782
782
)
783
783
return
784
- if "binary" not in search .formats and ext == wheel_ext :
784
+ if "binary" not in search .formats and ext == WHEEL_EXTENSION :
785
785
self ._log_skipped_link (
786
786
link , 'No binaries permitted for %s' % search .supplied ,
787
787
)
788
788
return
789
789
if "macosx10" in link .path and ext == '.zip' :
790
790
self ._log_skipped_link (link , 'macosx10 one' )
791
791
return
792
- if ext == wheel_ext :
792
+ if ext == WHEEL_EXTENSION :
793
793
try :
794
794
wheel = Wheel (link .filename )
795
795
except InvalidWheelFilename :
@@ -808,7 +808,7 @@ def _link_package_versions(self, link, search):
808
808
version = wheel .version
809
809
810
810
# This should be up by the search.ok_binary check, but see issue 2700.
811
- if "source" not in search .formats and ext != wheel_ext :
811
+ if "source" not in search .formats and ext != WHEEL_EXTENSION :
812
812
self ._log_skipped_link (
813
813
link , 'No sources permitted for %s' % search .supplied ,
814
814
)
0 commit comments