Show More
@@ -67,6 +67,8 b' parser.add_option("-n", "--nodiff", acti' | |||||
67 | help="skip showing test changes") |
|
67 | help="skip showing test changes") | |
68 | parser.add_option("--with-hg", type="string", |
|
68 | parser.add_option("--with-hg", type="string", | |
69 | help="test existing install at given location") |
|
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 | for option, default in defaults.items(): |
|
73 | for option, default in defaults.items(): | |
72 | defaults[option] = int(os.environ.get(*default)) |
|
74 | defaults[option] = int(os.environ.get(*default)) | |
@@ -175,13 +177,14 b' def install_hg():' | |||||
175 | global python |
|
177 | global python | |
176 | vlog("# Performing temporary installation of HG") |
|
178 | vlog("# Performing temporary installation of HG") | |
177 | installerrs = os.path.join("tests", "install.err") |
|
179 | installerrs = os.path.join("tests", "install.err") | |
|
180 | pure = options.pure and "--pure" or "" | |||
178 |
|
181 | |||
179 | # Run installer in hg root |
|
182 | # Run installer in hg root | |
180 | os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..')) |
|
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 | ' install --force --prefix="%s" --install-lib="%s"' |
|
185 | ' install --force --prefix="%s" --install-lib="%s"' | |
183 | ' --install-scripts="%s" >%s 2>&1' |
|
186 | ' --install-scripts="%s" >%s 2>&1' | |
184 | % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs)) |
|
187 | % (sys.executable, pure, INST, PYTHONDIR, BINDIR, installerrs)) | |
185 | vlog("# Running", cmd) |
|
188 | vlog("# Running", cmd) | |
186 | if os.system(cmd) == 0: |
|
189 | if os.system(cmd) == 0: | |
187 | if not verbose: |
|
190 | if not verbose: |
General Comments 0
You need to be logged in to leave comments.
Login now