Skip to content

Commit

Permalink
Install buildslave.bat wrapper for win32
Browse files Browse the repository at this point in the history
  • Loading branch information
djs authored and Dustin J. Mitchell committed Jun 27, 2010
1 parent cfa7a01 commit 8c94ca7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions contrib/windows/buildslave.bat
@@ -0,0 +1,22 @@
@echo off
REM This file is used to run buildslave when installed into a python installation or deployed in virtualenv

setlocal
set BB_BUILDSLAVE="%~dp0buildslave"

IF EXIST "%~dp0..\python.exe" (
REM Normal system install of python (buildslave.bat is in scripts dir, just below python.exe)
set BB_PYTHON="%~dp0..\python"
) ELSE IF EXIST "%~dp0python.exe" (
REM virtualenv install (buildslave.bat is in same dir as python.exe)
set BB_PYTHON="%~dp0python"
) ELSE (
REM Not found nearby. Use system version and hope for the best
echo Warning! Unable to find python.exe near buildslave.bat. Using python on PATH, which might be a mismatch.
echo.
set BB_PYTHON=python
)

%BB_PYTHON% %BB_BUILDSLAVE% %*

exit /b %ERRORLEVEL%
4 changes: 2 additions & 2 deletions slave/setup.py
Expand Up @@ -18,8 +18,8 @@

scripts = ["bin/buildslave"]
# TODO: windows stuff??
#if sys.platform == "win32":
# scripts.append("contrib/windows/buildslave.bat")
if sys.platform == "win32":
scripts.append("../contrib/windows/buildslave.bat")
# scripts.append("contrib/windows/buildslave_service.py")

setup_args = {
Expand Down

0 comments on commit 8c94ca7

Please sign in to comment.