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
77d34a84
Commit
77d34a84
authored
Mar 06, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search in the alternative location for VCExpress
parent
e8fce7b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
msvc9compiler.py
msvc9compiler.py
+11
-1
No files found.
msvc9compiler.py
View file @
77d34a84
...
@@ -38,6 +38,7 @@ HKEYS = (_winreg.HKEY_USERS,
...
@@ -38,6 +38,7 @@ HKEYS = (_winreg.HKEY_USERS,
_winreg
.
HKEY_CLASSES_ROOT
)
_winreg
.
HKEY_CLASSES_ROOT
)
VS_BASE
=
r"Software\
Mic
rosoft\
Visu
alStudio\
%
0.1f"
VS_BASE
=
r"Software\
Mic
rosoft\
Visu
alStudio\
%
0.1f"
VSEXPRESS_BASE
=
r"Software\
Mic
rosoft\
VCExp
ress\
%
0.1f"
WINSDK_BASE
=
r"Software\
Mic
rosoft\
Mic
rosoft SDKs\
Wi
ndows"
WINSDK_BASE
=
r"Software\
Mic
rosoft\
Mic
rosoft SDKs\
Wi
ndows"
NET_BASE
=
r"Software\
Mic
rosoft\
.NETF
ramework"
NET_BASE
=
r"Software\
Mic
rosoft\
.NETF
ramework"
...
@@ -216,9 +217,18 @@ def find_vcvarsall(version):
...
@@ -216,9 +217,18 @@ def find_vcvarsall(version):
productdir = Reg.get_value(r"
%
s
\
Setup
\
VC
" % vsbase,
productdir = Reg.get_value(r"
%
s
\
Setup
\
VC
" % vsbase,
"
productdir
")
"
productdir
")
except KeyError:
except KeyError:
log.debug("
Unable
to
find
productdir
in
registry
")
productdir = None
productdir = None
# trying Express edition
if productdir is None:
vsbase = VSEXPRESS_BASE % version
try:
productdir = Reg.get_value(r"
%
s
\
Setup
\
VC
" % vsbase,
"
productdir
")
except KeyError:
productdir = None
log.debug("
Unable
to
find
productdir
in
registry
")
if not productdir or not os.path.isdir(productdir):
if not productdir or not os.path.isdir(productdir):
toolskey = "
VS
%
0.
f0COMNTOOLS
" % version
toolskey = "
VS
%
0.
f0COMNTOOLS
" % version
toolsdir = os.environ.get(toolskey, None)
toolsdir = os.environ.get(toolskey, None)
...
...
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