mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Undo potentially confusing name change in packaging.
This method was named reinitialize_command in distutils and accompanied by a comment suggesting to change it to get_reinitialized_command. Following that, I did the change for distutils2, but it proved confusing: The Distribution object has an internal cache of command objects, to make sure only one instance is ever used, and the name get_reinitialized_command could suggest that the object returned was independent of that cache, which it was not. I’m reverting the name change to make code clearer.
This commit is contained in:
parent
4e377f215d
commit
a963e0d917
8 changed files with 19 additions and 19 deletions
|
@ -183,13 +183,13 @@ class bdist_msi(Command):
|
|||
if not self.skip_build:
|
||||
self.run_command('build')
|
||||
|
||||
install = self.get_reinitialized_command('install_dist',
|
||||
reinit_subcommands=True)
|
||||
install = self.reinitialize_command('install_dist',
|
||||
reinit_subcommands=True)
|
||||
install.prefix = self.bdist_dir
|
||||
install.skip_build = self.skip_build
|
||||
install.warn_dir = False
|
||||
|
||||
install_lib = self.get_reinitialized_command('install_lib')
|
||||
install_lib = self.reinitialize_command('install_lib')
|
||||
# we do not want to include pyc or pyo files
|
||||
install_lib.compile = False
|
||||
install_lib.optimize = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue