mirror of https://github.com/explosion/spaCy.git
parent
c14c6f5579
commit
fc68d1c51c
|
@ -24,13 +24,13 @@ install:
|
||||||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
||||||
|
|
||||||
# Filesystem root
|
# Filesystem root
|
||||||
- ps: "ls \"C:/\""
|
# - ps: "ls \"C:/\""
|
||||||
|
|
||||||
# Installed SDKs
|
# Installed SDKs
|
||||||
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
|
# - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
|
||||||
|
|
||||||
# Checking stdint.h
|
# Checking stdint.h
|
||||||
- ps: "ls \"C:/projects/spacy\""
|
- ps: "ls \"C:/projects/include\""
|
||||||
|
|
||||||
|
|
||||||
# Check that we have the expected version and architecture for Python
|
# Check that we have the expected version and architecture for Python
|
||||||
|
@ -51,7 +51,8 @@ install:
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
# Build the compiled extension
|
# Build the compiled extension
|
||||||
#- "%CMD_IN_ENV% python setup.py build"
|
- "%CMD_IN_ENV% python setup.py build_ext --inplace"
|
||||||
|
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
# Run the project tests
|
# Run the project tests
|
||||||
|
|
|
@ -227,8 +227,7 @@ function InstallMinicondaPip ($python_home) {
|
||||||
function InstallStdintH ($python_version) {
|
function InstallStdintH ($python_version) {
|
||||||
$major, $minor, $micro, $prerelease = ParsePythonVersion $python_version
|
$major, $minor, $micro, $prerelease = ParsePythonVersion $python_version
|
||||||
if ($major -le 2) {
|
if ($major -le 2) {
|
||||||
Write-Host "Downloading stdint.h"
|
Download "..\include\stdint.h" $STDINT_H_URL
|
||||||
Download "..\include" $STDINT_H_URL
|
|
||||||
} else {
|
} else {
|
||||||
Write-Host $python_version " uses C99 compliant Microsoft compiler. stdint.h download is not required."
|
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
|
InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
|
||||||
InstallPip $env:PYTHON
|
InstallPip $env:PYTHON
|
||||||
InstallStdintH $env:PYTHON_VERSION
|
InstallStdintH $env:PYTHON_VERSION
|
||||||
Download "stdint.h" $STDINT_H_URL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
|
@ -52,8 +52,8 @@ IF "%PYTHON_VERSION:~3,1%" == "." (
|
||||||
IF %MAJOR_PYTHON_VERSION% == 2 (
|
IF %MAJOR_PYTHON_VERSION% == 2 (
|
||||||
SET WINDOWS_SDK_VERSION="v7.0"
|
SET WINDOWS_SDK_VERSION="v7.0"
|
||||||
SET SET_SDK_64=Y
|
SET SET_SDK_64=Y
|
||||||
:: SET INCLUDE=C:\projects\include;%INCLUDE%
|
SET INCLUDE=C:\projects\include;%INCLUDE%
|
||||||
:: SET
|
SET INCLUDE
|
||||||
) ELSE (
|
) ELSE (
|
||||||
IF %MAJOR_PYTHON_VERSION% == 3 (
|
IF %MAJOR_PYTHON_VERSION% == 3 (
|
||||||
SET WINDOWS_SDK_VERSION="v7.1"
|
SET WINDOWS_SDK_VERSION="v7.1"
|
||||||
|
|
Loading…
Reference in New Issue