From fc68d1c51c805d22fbf3ce1a80a29d8cdf30f46d Mon Sep 17 00:00:00 2001 From: maxirmx Date: Mon, 12 Oct 2015 01:04:21 +0300 Subject: [PATCH] Appveyor build + setup.py --- .win-build.yml | 9 +++++---- appveyor/install.ps1 | 4 +--- appveyor/run_with_env.cmd | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.win-build.yml b/.win-build.yml index a34d84f83..e67352ea7 100644 --- a/.win-build.yml +++ b/.win-build.yml @@ -24,13 +24,13 @@ install: - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" # Filesystem root - - ps: "ls \"C:/\"" + # - ps: "ls \"C:/\"" # Installed SDKs - - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" + # - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" # Checking stdint.h - - ps: "ls \"C:/projects/spacy\"" + - ps: "ls \"C:/projects/include\"" # Check that we have the expected version and architecture for Python @@ -51,7 +51,8 @@ install: build_script: # Build the compiled extension - #- "%CMD_IN_ENV% python setup.py build" + - "%CMD_IN_ENV% python setup.py build_ext --inplace" + test_script: # Run the project tests diff --git a/appveyor/install.ps1 b/appveyor/install.ps1 index 5e5f37ef5..4b780b544 100644 --- a/appveyor/install.ps1 +++ b/appveyor/install.ps1 @@ -227,8 +227,7 @@ function InstallMinicondaPip ($python_home) { function InstallStdintH ($python_version) { $major, $minor, $micro, $prerelease = ParsePythonVersion $python_version if ($major -le 2) { - Write-Host "Downloading stdint.h" - Download "..\include" $STDINT_H_URL + Download "..\include\stdint.h" $STDINT_H_URL } else { Write-Host $python_version " uses C99 compliant Microsoft compiler. stdint.h download is not required." } @@ -239,7 +238,6 @@ function main () { InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON InstallPip $env:PYTHON InstallStdintH $env:PYTHON_VERSION - Download "stdint.h" $STDINT_H_URL } main \ No newline at end of file diff --git a/appveyor/run_with_env.cmd b/appveyor/run_with_env.cmd index 2138e0749..c09e3865f 100644 --- a/appveyor/run_with_env.cmd +++ b/appveyor/run_with_env.cmd @@ -52,8 +52,8 @@ IF "%PYTHON_VERSION:~3,1%" == "." ( IF %MAJOR_PYTHON_VERSION% == 2 ( SET WINDOWS_SDK_VERSION="v7.0" SET SET_SDK_64=Y -:: SET INCLUDE=C:\projects\include;%INCLUDE% -:: SET + SET INCLUDE=C:\projects\include;%INCLUDE% + SET INCLUDE ) ELSE ( IF %MAJOR_PYTHON_VERSION% == 3 ( SET WINDOWS_SDK_VERSION="v7.1"