Ticket #788 (closed defect: fixed)

Opened 22 months ago

Last modified 20 months ago

Incorrect buildbot.bat when installing on virtualenv on windows

Reported by: itamarost Owned by:
Priority: major Milestone: undecided
Version: 0.7.12 Keywords: virtualenv windows
Cc:

Description

When installing buildbot under virtualenv on Windows, buildbot.bat file created in /path/to/venv/Scripts, and refers to ../python executable. But in virtualenv (1.4.5), the python executable is also placed under /path/to/venv/Scripts dir, which causes buildbot.bat to fail.

Change History

comment:1 Changed 22 months ago by marcusl

The script should contain something like this (but tested):

@echo off

IF EXISTS "%~dp0..\python.exe" (
  "%~dp0..\python"  "%~dp0buildbot" %*
) ELSE IF EXISTS "%~dp0.\python.exe" (
  "%~dp0.\python"  "%~dp0buildbot" %*
) ELSE (
  echo Failed to find python.exe
  exit /b 1
)

exit /b %ERRORLEVEL%

comment:2 Changed 22 months ago by Marcus Lindblom

  • Status changed from new to closed
  • Resolution set to fixed

Fix buildbot.bat to work in virtualenv too (fixes #788)

Changeset: cf37d94bd6de799e38cfaf63b4eea687d885bff7

comment:3 Changed 20 months ago by Marcus Lindblom

Fix buildbot.bat to work in virtualenv too (fixes #788)

Changeset: cf37d94bd6de799e38cfaf63b4eea687d885bff7

Note: See TracTickets for help on using tickets.