[Buildbot-devel] virtualenv on windows issue
Marcus Lindblom
macke at yar.nu
Sat Apr 10 19:23:36 UTC 2010
Nope. I have four different python installs on my pc, as an example.
/Marcus
(Sent from my mobile device.)
----- Ursprungligt meddelande -----
Från: Itamar O <itamarost at gmail.com>
Skickat: den 10 april 2010 19:18
Till: Marcus Lindblom <macke at yar.nu>
Kopia: buildbot-devel at lists.sourceforge.net
Ämne: Re: [Buildbot-devel] virtualenv on windows issue
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
>
More information about the devel
mailing list