comparison tests/run-tests.py @ 7139:bcbba59e233d

run-tests.py: use --prefix instead of --home Some SUSE version don't like --home, they fail with: "error: must supply either home or prefix/exec-prefix -- not both" this is due to SUSE shipping a distutils.cfg conflicting with --home.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 18 Oct 2008 21:08:44 +0200
parents 0b72836b0384
children 9364c3304ca2
comparison
equal deleted inserted replaced
7138:0df098871e3d 7139:bcbba59e233d
174 installerrs = os.path.join("tests", "install.err") 174 installerrs = os.path.join("tests", "install.err")
175 175
176 # Run installer in hg root 176 # Run installer in hg root
177 os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..')) 177 os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..'))
178 cmd = ('%s setup.py clean --all' 178 cmd = ('%s setup.py clean --all'
179 ' install --force --home="%s" --install-lib="%s"' 179 ' install --force --prefix="%s" --install-lib="%s"'
180 ' --install-scripts="%s" >%s 2>&1' 180 ' --install-scripts="%s" >%s 2>&1'
181 % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs)) 181 % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs))
182 vlog("# Running", cmd) 182 vlog("# Running", cmd)
183 if os.system(cmd) == 0: 183 if os.system(cmd) == 0:
184 if not verbose: 184 if not verbose: