[PATCH] run-tests: define more arguments when building with distutils
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Sat Aug 22 07:29:07 CDT 2009
Bump! :)
Are there any problems with this patch? Without it, the you cannot run
the tests with ‘home’ set in your ‘.pydistutils.cfg’.
2009/8/14 Dan Villiom Podlaski Christiansen <danchr at gmail.com>:
> # HG changeset patch
> # User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
> # Date 1250275156 -7200
> # Node ID 000ac96c0a680cc80847ae84ba2b3bb3108c77b4
> # Parent 4e7149ed98e8cf910c6b556591d68ef301cb04b8
> run-tests: define more arguments when building with distutils.
>
> --home fixes building with it set in ~/.pydistutils.cfg.
> --install-data is for possible future usage.
>
> diff --git a/tests/run-tests.py b/tests/run-tests.py
> --- a/tests/run-tests.py
> +++ b/tests/run-tests.py
> @@ -277,7 +277,7 @@ def installhg(options):
> os.chdir(hgroot)
> cmd = ('%s setup.py %s clean --all'
> ' install --force --prefix="%s" --install-lib="%s"'
> - ' --install-scripts="%s" >%s 2>&1'
> + ' --install-scripts="%s" --home="" --install-data="" >%s 2>&1'
> % (sys.executable, pure, INST, PYTHONDIR, BINDIR, installerrs))
> vlog("# Running", cmd)
> if os.system(cmd) == 0:
>
--
Dan Villiom Podlaski Christiansen
danchr at gmail.com
More information about the Mercurial-devel
mailing list