]> granicus.if.org Git - python/commit
Hacked things up a bit so that configuration variables are expanded
authorGreg Ward <gward@python.net>
Wed, 26 Apr 2000 02:38:01 +0000 (02:38 +0000)
committerGreg Ward <gward@python.net>
Wed, 26 Apr 2000 02:38:01 +0000 (02:38 +0000)
commitff2d9b71547d95566416fa968872910ca9c4adb1
tree3766cc0b18f1d891820c14ec129b30a838a6c3f2
parent6ce94b72c6764c2d72ecb6128eeb8902f6798f79
Hacked things up a bit so that configuration variables are expanded
in command-line options, and in two phases at that: first, we expand
'install_base' and 'install_platbase', and then the other 'install_*'
options.  This lets us do tricky stuff like
    install --prefix='/tmp$sys_prefix'
...oooh, neat.

Simplified 'select_scheme()' -- it's no longer responsible for expanding
config vars, tildes, etc.

Define installation-specific config vars in 'self.config_vars', rather than
in a local dictionary of one method.  Also factored '_expand_attrs()' out
of 'expand_dirs()' and added 'expand_basedirs()'.

Added a bunch of debugging output so I (and others) can judge the
success of this crazy scheme through direct feedback.
Lib/distutils/command/install.py