(self)
return tools
Microsoft Visual C++ Tools
Microsoft Visual C++ Tools
Microsoft Visual C ++ Tools
def VCTools(self):
        """
        Microsoft Visual C++ Tools
        """
        si = self.si
        tools = [os.path.join(si.VCInstallDir, 'VCPackages')]

        forcex86 = True if self.vc_ver <= 10.0 else False
        arch_subdir = self.pi.cross_dir(forcex86)
        if arch_subdir:
            tools += [os.path.join(si.VCInstallDir, 'Bin%s' % arch_subdir)]

        if self.vc_ver == 14.0:
            path = 'Bin%s' % self.pi.current_dir(hidex86=True)
            tools += [os.path.join(si.VCInstallDir, path)]

        elif self.vc_ver >= 15.0:
            host_dir = (r'bin\HostX86%s' if self.pi.current_is_x86() else
                        r'bin\HostX64%s')
            tools += [os.path.join(
                si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))]

            if self.pi.current_cpu != self.pi.target_cpu:
                tools += [os.path.join(
                    si.VCInstallDir, host_dir % self.pi.current_dir(x64=True))]

        else:
            tools += [os.path.join(si.VCInstallDir, 'Bin')]

        return tools
def VCTools ( self ) : si = self . si tools = [ os . path . join ( si . VCInstallDir , 'VCPackages' ) ] forcex86 = True if self . vc_ver <= 10.0 else False arch_subdir = self . pi . cross_dir ( forcex86 ) if arch_subdir : tools += [ os . path . join ( si . VCInstallDir , 'Bin%s' % arch_subdir ) ] if self . vc_ver == 14.0 : path = 'Bin%s' % self . pi . current_dir ( hidex86 = True ) tools += [ os . path . join ( si . VCInstallDir , path ) ] elif self . vc_ver >= 15.0 : host_dir = ( r'bin\HostX86%s' if self . pi . current_is_x86 ( ) else r'bin\HostX64%s' ) tools += [ os . path . join ( si . VCInstallDir , host_dir % self . pi . target_dir ( x64 = True ) ) ] if self . pi . current_cpu != self . pi . target_cpu : tools += [ os . path . join ( si . VCInstallDir , host_dir % self . pi . current_dir ( x64 = True ) ) ] else : tools += [ os . path . join ( si . VCInstallDir , 'Bin' ) ] return tools