[Distutils] question about setuptools
Phillip J. Eby
pje at telecommunity.com
Thu Sep 15 03:41:26 CEST 2005
At 06:08 PM 9/14/2005 -0700, Robert Kern wrote:
>Index: setuptools/command/easy_install.py
>===================================================================
>RCS file:
>/cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/easy_install.py,v
>retrieving revision 1.28
>diff -u -r1.28 easy_install.py
>--- setuptools/command/easy_install.py 3 Sep 2005 04:50:05 -0000 1.28
>+++ setuptools/command/easy_install.py 14 Sep 2005 06:17:28 -0000
>@@ -141,6 +141,10 @@
> self.set_undefined_options('install', ('record', 'record'))
> normpath = map(normalize_path, sys.path)
> self.all_site_dirs = get_site_dirs()
>+ install_cmd = self.distribution.get_command_obj('install')
>+ if install_cmd.prefix is not None:
>+
>self.all_site_dirs.append(normalize_path(install_cmd.install_lib))
>+
> if self.site_dirs is not None:
> site_dirs = [
> os.path.expanduser(s.strip()) for s in
> self.site_dirs.split(',')
This code will break on other people's installations, in that it will not
be able to tell you're installing to a non-"site" directory unless you
explicitly provide an --install-dir on the command line. It will thus
create a non-working easy-install.pth, and will fail to warn the user that
'require()' is needed.
More information about the Distutils-SIG
mailing list