##// END OF EJS Templates
run-tests: add a --compiler option...
Bryan O'Sullivan -
r17966:ae20cde0 default
parent child Browse files
Show More
@@ -163,6 +163,8 b' def parseargs():'
163 163 parser.add_option("-p", "--port", type="int",
164 164 help="port on which servers should listen"
165 165 " (default: $%s or %d)" % defaults['port'])
166 parser.add_option("--compiler", type="string",
167 help="compiler to build with")
166 168 parser.add_option("--pure", action="store_true",
167 169 help="use pure Python code instead of C extensions")
168 170 parser.add_option("-R", "--restart", action="store_true",
@@ -371,6 +373,9 b' def usecorrectpython():'
371 373 def installhg(options):
372 374 vlog("# Performing temporary installation of HG")
373 375 installerrs = os.path.join("tests", "install.err")
376 compiler = ''
377 if options.compiler:
378 compiler = '--compiler ' + options.compiler
374 379 pure = options.pure and "--pure" or ""
375 380
376 381 # Run installer in hg root
@@ -385,10 +390,10 b' def installhg(options):'
385 390 # when they happen.
386 391 nohome = ''
387 392 cmd = ('%(exe)s setup.py %(pure)s clean --all'
388 ' build --build-base="%(base)s"'
393 ' build %(compiler)s --build-base="%(base)s"'
389 394 ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"'
390 395 ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1'
391 % dict(exe=sys.executable, pure=pure,
396 % dict(exe=sys.executable, pure=pure, compiler=compiler,
392 397 base=os.path.join(HGTMP, "build"),
393 398 prefix=INST, libdir=PYTHONDIR, bindir=BINDIR,
394 399 nohome=nohome, logfile=installerrs))
General Comments 0
You need to be logged in to leave comments. Login now