[Distutils] setuptools and extra_path
Bob Ippolito
bob at redivi.com
Mon Jul 17 23:47:30 CEST 2006
On Jul 17, 2006, at 2:33 PM, Phillip J. Eby wrote:
> At 12:26 AM 7/17/2006 -0700, Bob Ippolito wrote:
>> Is there any reason why setuptools totally ignores extra_path when
>> using compatibility mode (e.g. calling .run() manually or --single-
>> version-externally-managed)?
>
> It's probably an unintended side effect of the fact that setuptools
> doesn't support extra_path.
Why not support it with --single-version-externally-managed?
>> It makes uninstallation much more painful than it would've been
>> otherwise.
>
> Weren't you using --root or --record? You pretty much have to do
> one or the other for backward compatibility to be in effect, I
> believe.
No, but it's a subclass of the install command. It's caught by this
in setuptools.command.install.install.run:
caller = sys._getframe(2)
caller_module = caller.f_globals.get('__name__','')
caller_name = caller.f_code.co_name
if caller_module != 'distutils.dist' or caller_name!
='run_commands':
# We weren't called from the command line or setup(), so we
# should run in backward-compatibility mode to support
bdist_*
# commands.
_install.run(self)
-bob
More information about the Distutils-SIG
mailing list