2015-10-10 14:32:44 +00:00
@ echo off
rem Python 2.7 x86-64 spaCy Windows build
rem Toolchain:
rem Python 2.7.10 :)
rem Microsoft Visual C++ Compiler Package for Python 2.7:
rem http://www.microsoft.com/en-us/download/details.aspx?id=44266
rem C99 compliant stdint.h for MSVC:
rem http://msinttypes.googlecode.com/svn/trunk/stdint.h
2015-10-10 17:11:20 +00:00
IF " %1 " == " 32 " GOTO x86-32
IF " %1 " == " 64 " GOTO x86-64
2015-10-10 14:32:44 +00:00
2015-10-10 17:11:20 +00:00
@ echo Usage: build-Python27 32/64
EXIT /B
: x86-32
PATH = D:\Python27-32\;D:\Python27-32\Scripts;%PATH%
GOTO run
: x86-64
2015-10-10 14:32:44 +00:00
PATH = D:\Python27\;D:\Python27\Scripts;%PATH%
2015-10-10 17:11:20 +00:00
: run
2015-10-10 14:32:44 +00:00
2015-10-10 17:11:20 +00:00
IF NOT EXIST " %LOCALAPPDATA% \Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include\stdint.h " COPY D:\local\include\stdint.h " %LOCALAPPDATA% \Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include\stdint.h "
2015-10-10 14:32:44 +00:00
pip install --upgrade setuptools
pip install cython fabric fabtools
pip install -r requirements.txt
python setup.py build_ext --inplace
2015-10-10 17:11:20 +00:00
rem python setup.py test
rem python setup.py install
rem python tests\conftest.py