Staging
v0.5.1
https://github.com/python/cpython
Revision 01ab9634601fc1a4f9ac5d72ddc022239d2543fe authored by Miss Islington (bot) on 18 July 2020, 21:39:02 UTC, committed by GitHub on 18 July 2020, 21:39:02 UTC

Walk down the MRO backwards to find the type that originally defined the final `tp_setattro`, then make sure we are not jumping over intermediate C-level bases with the Python-level call.

Automerge-Triggered-By: @gvanrossum
(cherry picked from commit c53b310e5926266ce267c44a168165cacd786d6e)

Co-authored-by: scoder <stefan_ml@behnel.de>
1 parent 27b8110
Raw File
Tip revision: 01ab9634601fc1a4f9ac5d72ddc022239d2543fe authored by Miss Islington (bot) on 18 July 2020, 21:39:02 UTC
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
Tip revision: 01ab963
find-sdk.yml
# Locate the Windows SDK and add its binaries directory to PATH
#
# `toolname` can be overridden to use a different marker file.

parameters:
  toolname: signtool.exe

steps:
  - powershell: |
      $kitroot = (gp 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\').KitsRoot10
      $tool = (gci -r "$kitroot\Bin\*\${{ parameters.toolname }}" | sort FullName -Desc | select -First 1)
      if (-not $tool) {
          throw "SDK is not available"
      }
      Write-Host "##vso[task.prependpath]$($tool.Directory)"
      Write-Host "Adding $($tool.Directory) to PATH"
    displayName: 'Add WinSDK tools to path'
back to top