Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
8d508965
Commit
8d508965
authored
Aug 18, 2020
by
Jason R. Coombs
Committed by
GitHub
Aug 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2334 from arencambre/master
Resolving error text issue (#2302)
parents
675d32ff
84f1ba0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
changelog.d/2334.change.rst
changelog.d/2334.change.rst
+1
-0
setuptools/msvc.py
setuptools/msvc.py
+4
-3
No files found.
changelog.d/2334.change.rst
0 → 100644
View file @
8d508965
In MSVC module, refine text in error message.
setuptools/msvc.py
View file @
8d508965
...
...
@@ -338,7 +338,7 @@ def _augment_exception(exc, version, arch=''):
if
"vcvarsall"
in
message
.
lower
()
or
"visual c"
in
message
.
lower
():
# Special error message if MSVC++ not installed
tmpl
=
'Microsoft Visual C++ {version:0.1f} is required.'
tmpl
=
'Microsoft Visual C++ {version:0.1f}
or greater
is required.'
message
=
tmpl
.
format
(
**
locals
())
msdownload
=
'www.microsoft.com/download/details.aspx?id=%d'
if
version
==
9.0
:
...
...
@@ -358,8 +358,9 @@ def _augment_exception(exc, version, arch=''):
message
+=
msdownload
%
8279
elif
version
>=
14.0
:
# For VC++ 14.X Redirect user to latest Visual C++ Build Tools
message
+=
(
' Get it with "Build Tools for Visual Studio": '
r'https://visualstudio.microsoft.com/downloads/'
)
message
+=
(
' Get it with "Microsoft C++ Build Tools": '
r'https://visualstudio.microsoft.com'
r'/visual-cpp-build-tools/'
)
exc
.
args
=
(
message
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment