Mercurial > hg
comparison tests/run-tests.py @ 10020:d7c23f4a14c7
run-tests: install data files correctly
In 68964567e406 we began installing some data files in PREFIX/share.
When preparing to run the tests, run-tests.py uses --home="" in order
to work around home being set in a ~/.pydistutils.cfg file. This
somehow overwrites the --prefix option.
The result was that the share/ directory was installed in the top of
the Mercurial source tree.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 05 Dec 2009 23:16:09 +0100 |
parents | b2e87fde6806 |
children | cbc93d8ed46a |
comparison
equal
deleted
inserted
replaced
10019:4e3a8f3e9dc2 | 10020:d7c23f4a14c7 |
---|---|
314 # least on Windows for now, deal with .pydistutils.cfg bugs | 314 # least on Windows for now, deal with .pydistutils.cfg bugs |
315 # when they happen. | 315 # when they happen. |
316 nohome = '' | 316 nohome = '' |
317 cmd = ('%s setup.py %s clean --all' | 317 cmd = ('%s setup.py %s clean --all' |
318 ' install --force --prefix="%s" --install-lib="%s"' | 318 ' install --force --prefix="%s" --install-lib="%s"' |
319 ' --install-scripts="%s" %s >%s 2>&1' | 319 ' --install-scripts="%s" --install-data="%s" %s >%s 2>&1' |
320 % (sys.executable, pure, INST, PYTHONDIR, BINDIR, nohome, | 320 % (sys.executable, pure, INST, PYTHONDIR, BINDIR, INST, nohome, |
321 installerrs)) | 321 installerrs)) |
322 vlog("# Running", cmd) | 322 vlog("# Running", cmd) |
323 if os.system(cmd) == 0: | 323 if os.system(cmd) == 0: |
324 if not options.verbose: | 324 if not options.verbose: |
325 os.remove(installerrs) | 325 os.remove(installerrs) |