-
Install VS Build Tools using PortableBuildTools
https://github.com/Data-Oriented-House/PortableBuildTools -
for version 14.44.17.14 it creates
devcmd.batin thevs_BuildToolsfolder- copy this
devcmd.battoVC\vcvarsall.bat - in
vcvarsall.batcreate an environment variableLIBPATHand set it to the same value asLIB
(query_vcvarsallin distuils msvc9compiler needsLIBPATHin addition toLIB)
- copy this
-
set
VS140COMNTOOLSto thevs_BuildTools\VC\Toolsfolder
(this makes surevcvarsall.batis being found by distutils) -
set DISTUTILS_USE_SDK=1/$env:DISTUTILS_USE_SDK=1
executedevcmd.bat/devcmd.ps1
Steps 3 and 4 can be included in devcmd.bat:
set VS140COMNTOOLS=%BUILD_TOOLS_ROOT%VC\Tools
set DISTUTILS_USE_SDK=1 or devcmd.ps1:
$env:VS140COMNTOOLS = (Join-Path $InstallPath '\VC\Tools')
$env:DISTUTILS_USE_SDK = 1 Now you can install packages from source with cython, e.g. pip install outliertree