@@ -788,21 +788,25 @@ def _skip_sendtelemetry(env):
788
788
# VS2015 and earlier: configure registry queries to probe for installed VC editions
789
789
_VCVER_TO_PRODUCT_DIR = {
790
790
'14.0' : [
791
- (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VisualStudio\14.0\Setup\VC\ProductDir' )],
791
+ (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VisualStudio\14.0\Setup\VC\ProductDir' )
792
+ ],
792
793
'14.0Exp' : [
793
- (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\WDExpress\14.0\Setup\VS\ProductDir' ), # vs root
794
- (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VCExpress\14.0\Setup\VC\ProductDir' ), # not populated?
795
- (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VisualStudio\14.0\Setup\VC\ProductDir' )], # kind detection
794
+ (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\WDExpress\14.0\Setup\VS\ProductDir' ),
795
+ (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VCExpress\14.0\Setup\VC\ProductDir' ),
796
+ (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VisualStudio\14.0\Setup\VC\ProductDir' )
797
+ ],
796
798
'12.0' : [
797
799
(SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VisualStudio\12.0\Setup\VC\ProductDir' ),
798
800
],
799
801
'12.0Exp' : [
802
+ (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\WDExpress\12.0\Setup\VS\ProductDir' ),
800
803
(SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VCExpress\12.0\Setup\VC\ProductDir' ),
801
804
],
802
805
'11.0' : [
803
806
(SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VisualStudio\11.0\Setup\VC\ProductDir' ),
804
807
],
805
808
'11.0Exp' : [
809
+ (SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\WDExpress\11.0\Setup\VS\ProductDir' ),
806
810
(SCons .Util .HKEY_LOCAL_MACHINE , r'Microsoft\VCExpress\11.0\Setup\VC\ProductDir' ),
807
811
],
808
812
'10.0' : [
@@ -1415,8 +1419,8 @@ def find_vc_pdir_registry(msvc_version):
1415
1419
# Visual C++ for Python registry key is VS installdir (root) not VC productdir
1416
1420
is_vsroot = True
1417
1421
is_vcforpython = True
1418
- elif msvc_version == '14.0Exp' and key .lower ().endswith ('\\ 14.0 \\ setup\\ vs\\ productdir' ):
1419
- # 2015Exp VS productdir (root) not VC productdir
1422
+ elif msvc_version in ( '14.0Exp' , '12.0Exp' , '11.0Exp' ) and key .lower ().endswith ('\\ setup\\ vs\\ productdir' ):
1423
+ # Visual Studio 2015/2013/2012 Express is VS productdir (root) not VC productdir
1420
1424
is_vsroot = True
1421
1425
1422
1426
if is_vsroot :
0 commit comments