Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
fix appveyor and add build.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Pusnow committed Jul 1, 2017
1 parent 22babe6 commit 53f58d6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
9 changes: 6 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ environment:
ARCH: x86
- PYTHON_VERSION: 33-x64
ARCH: x64
DISTUTILS_USE_SDK: "1"
- PYTHON_VERSION: 34
ARCH: x86
- PYTHON_VERSION: 34-x64
ARCH: x64
DISTUTILS_USE_SDK: "1"
- PYTHON_VERSION: 35
ARCH: x86
- PYTHON_VERSION: 35-x64
Expand All @@ -26,12 +28,13 @@ environment:
- PYTHON_VERSION: 36-x64
ARCH: x64
before_build:
- ps: Start-FileDownload 'https://github.com/Pusnow/mecab-ko-msvc/releases/download/release-0.9.2-msvc-3/mecab-ko-msvc-%ARCH%.zip'
- 7z x mecab-ko-msvc-x64.zip -oc:\mecab
- ps: Start-FileDownload 'https://github.com/Pusnow/mecab-ko-msvc/releases/download/release-0.9.2-msvc-3/mecab-ko-msvc-$Env:ARCH.zip'
- 7z x mecab-ko-msvc-%ARCH%.zip -oc:\mecab
- C:\Python%PYTHON_VERSION%\python.exe -m pip install wheel
- C:\Python%PYTHON_VERSION%\python.exe -m pip install -U setuptools

build_script:
- C:\Python%PYTHON_VERSION%\python.exe setup.py bdist_wheel
- build.cmd C:\Python%PYTHON_VERSION%\python.exe setup.py bdist_wheel


artifacts:
Expand Down
21 changes: 21 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
:: To build extensions for 64 bit Python 3, we need to configure environment
:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
:: MS Windows SDK for Windows 7 and .NET Framework 4
::
:: More details at:
:: https://github.com/cython/cython/wiki/CythonExtensionsOnWindows

IF "%DISTUTILS_USE_SDK%"=="1" (
ECHO Configuring environment to build with MSVC on a 64bit architecture
ECHO Using Windows SDK 7.1
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
SET MSSdk=1
REM Need the following to allow tox to see the SDK compiler
SET TOX_TESTENV_PASSENV=DISTUTILS_USE_SDK MSSdk INCLUDE LIB
) ELSE (
ECHO Using default MSVC build environment
)

CALL %*

0 comments on commit 53f58d6

Please sign in to comment.