try to fix windows path issue

--HG--
branch : trunk
This commit is contained in:
holger krekel 2009-12-25 00:31:51 +01:00
parent 88e61467f1
commit d28838bbb6
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,6 @@
import os, sys, subprocess, urllib
BUILDNAME=os.environ.get('BUILD_NUMBER', "1")
BIN=os.path.abspath(os.path.join(BUILDNAME, 'bin'))
PYTHON=os.path.join(BIN, 'python')
def call(*args):
ret = subprocess.call(list(args))
@ -14,6 +12,12 @@ def bincall(*args):
call(*args)
call("virtualenv", os.path.abspath(BUILDNAME), '--no-site-packages')
BIN=os.path.abspath(os.path.join(BUILDNAME, 'bin'))
if not os.path.exists(BIN):
BIN=os.path.abspath(os.path.join(BUILDNAME, 'Scripts'))
assert os.path.exists(BIN)
PYTHON=os.path.join(BIN, 'python')
bincall("python", "setup.py", "develop", "-q")
bincall("pip", "install", "-r", "testing/pip-reqs1.txt",
"-q", "--download-cache=download")