##// END OF EJS Templates
run-tests: add --pure flag for using pure Python modules
Martin Geisler -
r7723:a343cd25 default
parent child Browse files
Show More
@@ -67,6 +67,8 b' parser.add_option("-n", "--nodiff", acti'
67 67 help="skip showing test changes")
68 68 parser.add_option("--with-hg", type="string",
69 69 help="test existing install at given location")
70 parser.add_option("--pure", action="store_true",
71 help="use pure Python code instead of C extensions")
70 72
71 73 for option, default in defaults.items():
72 74 defaults[option] = int(os.environ.get(*default))
@@ -175,13 +177,14 b' def install_hg():'
175 177 global python
176 178 vlog("# Performing temporary installation of HG")
177 179 installerrs = os.path.join("tests", "install.err")
180 pure = options.pure and "--pure" or ""
178 181
179 182 # Run installer in hg root
180 183 os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..'))
181 cmd = ('%s setup.py clean --all'
184 cmd = ('%s setup.py %s clean --all'
182 185 ' install --force --prefix="%s" --install-lib="%s"'
183 186 ' --install-scripts="%s" >%s 2>&1'
184 % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs))
187 % (sys.executable, pure, INST, PYTHONDIR, BINDIR, installerrs))
185 188 vlog("# Running", cmd)
186 189 if os.system(cmd) == 0:
187 190 if not verbose:
General Comments 0
You need to be logged in to leave comments. Login now