Fixed to use 'reinitialize_command()' to fetch the "install" command object.

This commit is contained in:
Greg Ward 2000-06-28 00:36:40 +00:00
parent a1e4b05ac4
commit edc6a519dc
1 changed files with 1 additions and 6 deletions

View File

@ -58,12 +58,7 @@ class bdist_dumb (Command):
self.run_command ('build') self.run_command ('build')
# XXX don't use 'self.get_finalized_command()', because it always runs install = self.reinitialize_command('install')
# 'ensure_finalized()' on the command object; we explictly want a
# command object that has *not* been finalized, so we can set
# options on it! (The option we set, 'root', is so that we can do
# a proper "fake install" using this install command object.)
install = self.distribution.get_command_obj('install')
install.root = self.bdist_dir install.root = self.bdist_dir
self.announce ("installing to %s" % self.bdist_dir) self.announce ("installing to %s" % self.bdist_dir)