parent
88e61467f1
commit
d28838bbb6
|
@ -1,8 +1,6 @@
|
||||||
import os, sys, subprocess, urllib
|
import os, sys, subprocess, urllib
|
||||||
|
|
||||||
BUILDNAME=os.environ.get('BUILD_NUMBER', "1")
|
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):
|
def call(*args):
|
||||||
ret = subprocess.call(list(args))
|
ret = subprocess.call(list(args))
|
||||||
|
@ -14,6 +12,12 @@ def bincall(*args):
|
||||||
call(*args)
|
call(*args)
|
||||||
|
|
||||||
call("virtualenv", os.path.abspath(BUILDNAME), '--no-site-packages')
|
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("python", "setup.py", "develop", "-q")
|
||||||
bincall("pip", "install", "-r", "testing/pip-reqs1.txt",
|
bincall("pip", "install", "-r", "testing/pip-reqs1.txt",
|
||||||
"-q", "--download-cache=download")
|
"-q", "--download-cache=download")
|
||||||
|
|
Loading…
Reference in New Issue