mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
run-tests: install data files correctly
In 47cfa8aa4b94 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.
This commit is contained in:
parent
772247b8f8
commit
18e6420547
@ -316,8 +316,8 @@ def installhg(options):
|
||||
nohome = ''
|
||||
cmd = ('%s setup.py %s clean --all'
|
||||
' install --force --prefix="%s" --install-lib="%s"'
|
||||
' --install-scripts="%s" %s >%s 2>&1'
|
||||
% (sys.executable, pure, INST, PYTHONDIR, BINDIR, nohome,
|
||||
' --install-scripts="%s" --install-data="%s" %s >%s 2>&1'
|
||||
% (sys.executable, pure, INST, PYTHONDIR, BINDIR, INST, nohome,
|
||||
installerrs))
|
||||
vlog("# Running", cmd)
|
||||
if os.system(cmd) == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user