Appveyor build

+ setup.py
This commit is contained in:
maxirmx 2015-10-12 01:04:21 +03:00
parent c14c6f5579
commit fc68d1c51c
3 changed files with 8 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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"