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
66177c94
Commit
66177c94
authored
Apr 08, 2017
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract private method for locating latest available vc ver.
parent
f420bb20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
setuptools/msvc.py
setuptools/msvc.py
+8
-8
No files found.
setuptools/msvc.py
View file @
66177c94
...
...
@@ -472,14 +472,14 @@ class SystemInfo:
def __init__(self, registry_info, vc_ver=None):
self.ri = registry_info
self.pi = self.ri.pi
if vc_ver:
self.vc_ver = vc_ver
else
:
try:
self.vc_ver =
self.find_available_vc_vers()[-1]
except IndexError:
err = '
No
Microsoft
Visual
C
++
version
found
'
raise distutils.errors.DistutilsPlatformError(err)
self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
def _find_latest_available_vc_ver(self)
:
try:
return
self.find_available_vc_vers()[-1]
except IndexError:
err = '
No
Microsoft
Visual
C
++
version
found
'
raise distutils.errors.DistutilsPlatformError(err)
def find_available_vc_vers(self):
"""
...
...
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