mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
Appveyor build
+ stdint.h
This commit is contained in:
parent
c1ca220769
commit
b73c7ab45e
|
@ -14,12 +14,6 @@ environment:
|
|||
PYTHON_ARCH: "64"
|
||||
|
||||
install:
|
||||
# Filesystem root
|
||||
- ps: "ls \"C:/\""
|
||||
|
||||
# Installed SDKs
|
||||
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
|
||||
|
||||
# Install Python (from the official .msi of http://python.org) and pip when
|
||||
# not already installed.
|
||||
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
|
||||
|
@ -29,6 +23,12 @@ install:
|
|||
# the parent CMD process).
|
||||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
||||
|
||||
# Filesystem root
|
||||
- ps: "ls \"C:/\""
|
||||
|
||||
# Installed SDKs
|
||||
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
|
||||
|
||||
# Check that we have the expected version and architecture for Python
|
||||
- "python --version"
|
||||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
# Sample script to install Python and pip under Windows
|
||||
# Based on the script to install Python and pip under Windows
|
||||
# Authors: Olivier Grisel, Jonathan Helmus, Kyle Kastner, and Alex Willmer
|
||||
# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
|
||||
#
|
||||
# Added: stdint.h download for Python 2.x
|
||||
|
||||
$MINICONDA_URL = "http://repo.continuum.io/miniconda/"
|
||||
$BASE_URL = "https://www.python.org/ftp/python/"
|
||||
$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
|
||||
$GET_PIP_PATH = "C:\get-pip.py"
|
||||
$STDINT_H_URL = "http://msinttypes.googlecode.com/svn/trunk/stdint.h"
|
||||
|
||||
$PYTHON_PRERELEASE_REGEX = @"
|
||||
(?x)
|
||||
|
@ -221,9 +224,22 @@ 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
|
||||
} else {
|
||||
Write-Host $python_version " uses C99 compliant Microsoft compiler. stdint.h download is not required."
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function main () {
|
||||
InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
|
||||
InstallPip $env:PYTHON
|
||||
InstallStdintH $env:PYTHON_VERSION
|
||||
Download $pwd.Path + "\..\include"
|
||||
}
|
||||
|
||||
main
|
|
@ -6,6 +6,9 @@
|
|||
:: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of:
|
||||
:: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0)
|
||||
::
|
||||
:: To provide C99 compatibility C:\projects\include is added to INCLUDE environment variable
|
||||
:: in a believe that stdin.h has been uploaded there earlier during the installation
|
||||
::
|
||||
:: 32 bit builds, and 64-bit builds for 3.5 and beyond, do not require specific
|
||||
:: environment configurations.
|
||||
::
|
||||
|
@ -49,6 +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
|
||||
) ELSE (
|
||||
IF %MAJOR_PYTHON_VERSION% == 3 (
|
||||
SET WINDOWS_SDK_VERSION="v7.1"
|
||||
|
|
Loading…
Reference in New Issue
Block a user