From f482d747e01b0a84ce2abaa61aa39a7c3786a310 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 12 Dec 2008 04:23:47 +0000 Subject: [PATCH] Fix installing with --root --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2019b7f69..b01fdb880 100644 --- a/setup.py +++ b/setup.py @@ -305,12 +305,12 @@ class clean(_clean): _clean.run(self) class install(_install): - sub_commands = _install.sub_commands def run(self): for cmd_name in self.get_sub_commands(): self.run_command(cmd_name) _install.run(self) - self.do_egg_install() + if not self.root: + self.do_egg_install() cmdclass = { 'build': build,