[Buildbot-devel] virtualenv on windows issue

Itamar O itamarost at gmail.com
Sat Apr 10 17:18:52 UTC 2010


Done- http://buildbot.net/trac/ticket/788

Isn't it safe to assume that the python executable is in the system path,
and simply call @"python" "%~dp0buildbot" %* or something of that sort?

Itamar.

On Sat, Apr 10, 2010 at 8:01 PM, Marcus Lindblom <macke at yar.nu> wrote:

> On 2010-04-10 18:44, Itamar O wrote:
> > Hi,
> > I might have done something wrong during installation,
> > so I want to check this with the list before opening a ticket.
> >
> [snip]
> > So I checked the content of the buildbot.bat file, which was:
> >     @"%~dp0..\python" "%~dp0buildbot" %*
> > But in my virtualenv, the python binary is also under Scripts, and not
> > one level above,
> > so changing the buildbot.bat file to:
> >     @"%~dp0.\python" "%~dp0buildbot" %*         (note one less '.')
> > solved the issue.
> >
> > Have I done something wrong?
>
> Nop. The bat-file was written with a system installation in mind, not
> virtualenv.
>
> Open a ticket, and we'll think of something like this, but tested and
> with all errors fixed. ;-P
>
> ==
> @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%
> ==
>
> Cheers,
> /Marcus
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100410/ed8c45a0/attachment.html>


More information about the devel mailing list