equal
deleted
inserted
replaced
132 def install_hg(): |
132 def install_hg(): |
133 global python |
133 global python |
134 vlog("# Performing temporary installation of HG") |
134 vlog("# Performing temporary installation of HG") |
135 installerrs = os.path.join("tests", "install.err") |
135 installerrs = os.path.join("tests", "install.err") |
136 |
136 |
137 os.chdir("..") # Get back to hg root |
137 # Run installer in hg root |
|
138 os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..')) |
138 cmd = ('%s setup.py clean --all' |
139 cmd = ('%s setup.py clean --all' |
139 ' install --force --home="%s" --install-lib="%s"' |
140 ' install --force --home="%s" --install-lib="%s"' |
140 ' --install-scripts="%s" >%s 2>&1' |
141 ' --install-scripts="%s" >%s 2>&1' |
141 % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs)) |
142 % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs)) |
142 vlog("# Running", cmd) |
143 vlog("# Running", cmd) |