diff options
author | 2015-08-24 13:22:48 +0300 | |
---|---|---|
committer | 2015-08-24 13:22:48 +0300 | |
commit | dab741a80699f86e86c91718872a052cca9bbb25 (patch) | |
tree | 1959c4a2cea440170a5113dcb067796cb20ffb64 /external_libs/python/pyzmq-14.7.0/tools/release_windows.bat | |
parent | d3f26ece7d4383df0b22fe9c3cb3e695381ec737 (diff) |
Fixed dependencies of Control Plane to use external_lib sources
Diffstat (limited to 'external_libs/python/pyzmq-14.7.0/tools/release_windows.bat')
-rw-r--r-- | external_libs/python/pyzmq-14.7.0/tools/release_windows.bat | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/external_libs/python/pyzmq-14.7.0/tools/release_windows.bat b/external_libs/python/pyzmq-14.7.0/tools/release_windows.bat new file mode 100644 index 00000000..a970e69e --- /dev/null +++ b/external_libs/python/pyzmq-14.7.0/tools/release_windows.bat @@ -0,0 +1,48 @@ +@echo off +REM build a pyzmq release on Windows +REM 32+64b eggs on Python 27, and wheels on 27, 34 +REM that's 6 bdists +REM requires Windows SDK 7.0 (for py2) and 7.1 (for py3) +REM and Python installed in the locations: C:\Python34 (32b) and C:\Python34_64 (64b) + +REM run with cmd /k $PWD/tools/release_windows.bat + +setlocal EnableDelayedExpansion + +set SDKS=C:\Program Files\Microsoft SDKs\Windows +set SDK7=%SDKS%\v7.0 +set SDK71=%SDKS%\v7.1 +set DISTUTILS_USE_SDK=1 +set UPLOAD=%~1 +set PYROOT=C:\ + +for %%p in (35, 34, 27) do ( + if "%%p"=="27" ( + set SDK=%SDK7% + set cmd=build bdist_egg bdist_wheel --zmq=bundled %UPLOAD% + ) else ( + set SDK=%SDK71% + set cmd=build bdist_wheel --zmq=bundled %UPLOAD% + ) + + for %%b in (64, 32) do ( + if "%%b"=="64" ( + set SUFFIX=_64 + set ARCH=/x64 + ) else ( + set SUFFIX= + set ARCH=/x86 + ) + set PY=%PYROOT%\Python%%p!SUFFIX!\Python + echo !PY! !SDK! + !PY! -m pip install --upgrade setuptools pip wheel + + @call "!SDK!\Bin\SetEnv.cmd" /release !ARCH! + if !errorlevel! neq 0 exit /b !errorlevel! + @echo on + !PY! setup.py !cmd! + @echo off + if !errorlevel! neq 0 exit !errorlevel! + ) +) +exit |