mirror of https://github.com/pypa/pip
use error.filename, remove padding and shorten url
This commit is contained in:
parent
45930078a6
commit
67dcdf5e11
|
@ -442,16 +442,14 @@ class InstallCommand(RequirementCommand):
|
|||
error, show_traceback, options.use_user_site,
|
||||
)
|
||||
if (WINDOWS and error.errno == errno.ENOENT and error.filename and
|
||||
len(error.filename) >= 260):
|
||||
len(error.filename) > 260):
|
||||
logger.warning(
|
||||
'The following error can potentially be caused '
|
||||
'because Long Paths is disabled on your system. '
|
||||
'Please set LongPathsEnabled to 1 in the '
|
||||
'registry and try again. For further instructions '
|
||||
'please refer to the documentation: https://docs.'
|
||||
'microsoft.com/en-us/windows/win32/fileio/maximum'
|
||||
'-file-path-limitation?tabs=cmd#enable-long-paths'
|
||||
'-in-windows-10-version-1607-and-later'
|
||||
'please refer to the documentation: '
|
||||
'https://pip.pypa.io/warnings/enable-long-paths'
|
||||
)
|
||||
logger.error(message, exc_info=show_traceback) # noqa
|
||||
|
||||
|
|
Loading…
Reference in New Issue