[qmtest] --root should not be used to write the config file

Mark Mitchell mark at codesourcery.com
Sun Mar 30 20:31:05 UTC 2008


Matthias Klose wrote:
> seen in qmtest-2.4; the Debian build installs into a temporary
> installation directory, which results in a wrong extension_path in the
> config.py file.

Thank you for the patch.

> --- qmtest-2.4.orig/qmdist/command/install_lib.py
> +++ qmtest-2.4/qmdist/command/install_lib.py
> @@ -49,7 +49,7 @@
>          config_file = join(self.install_dir, 'qm', 'config.py')
>          self.announce("adjusting config parameters")
>          i = self.distribution.get_command_obj('install')
> -        prefix = i.root or i.prefix
> +        prefix = i.prefix
>          extension_path = join('share',
>                                'qmtest',
>                                'site-extensions-%d.%d'%sys.version_info[:2])

Can you explain a little more about what this patch is doing?  In 
looking at the distutils documentation, I couldn't find anything about 
"root".  I assume that i.prefix is the --prefix argument provided to 
setup.py, but what's i.root?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the qmtest mailing list