Skip to content
  • Matt Harbison's avatar
    add support for building with 'Microsoft Visual C++ Compiler for Python 2.7' · 17b24295a60e
    Matt Harbison authored
    The build process already builds Mercurial with this compiler if it is
    installed, so we might as well use this to compile the shell extension if it is
    available.  The only manual change needed is to download these merge modules:
    
        vc9-crt-x64-msm
        vc9-crt-x64-msm-policy
    
    create 'Redist\VC' here:
    
        %LOCALAPPDATA%\Programs\Common\Microsoft\Visual C++ for Python\9.0\WinSDK\
    
    and name them:
    
        Microsoft.VCxx.CRT.x64_msm.msm
        policy.x.xx.Microsoft.VCxx.CRT.x64_msm.msm
    
    I have no idea why, but DISTUTILS_USE_SDK can't be set, otherwise Mercurial
    fails to build its C extensions.  The strange thing is that the new packaging
    scripts *do* set this.
    
    [1] https://github.com/indygreg/vc90-merge-modules
    17b24295a60e