diff options
| author | PJ Eby <distutils-sig@python.org> | 2006-02-10 01:25:20 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2006-02-10 01:25:20 +0000 |
| commit | 71f014d957e866a06b303cfdaacdfdc4a5bad32e (patch) | |
| tree | 7076c49bb89a9d6668e618e6fb7eefa3ad7eb1ba /setuptools/command | |
| parent | 81bd937426b4f47094ae50157b12f82093a8f3ef (diff) | |
| download | python-setuptools-git-71f014d957e866a06b303cfdaacdfdc4a5bad32e.tar.gz | |
Tweak site_dirs detection so that distros with weird layouts (e.g.
/usr/lib64 patches on 64-bit Fedora) will have a better chance of
working "out of the box".
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042299
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/easy_install.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index abf2ea14..c0bc2a16 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -934,12 +934,12 @@ def get_site_dirs(): sys.version[:3], 'site-packages')) + site_lib = get_python_lib(prefix=prefix or None) + if site_lib not in sitedirs: sitedirs.append(site_lib) + sitedirs = filter(os.path.isdir, sitedirs) sitedirs = map(normalize_path, sitedirs) - return sitedirs or [normalize_path(get_python_lib())] # ensure at least one - - - + return sitedirs # ensure at least one def expand_paths(inputs): """Yield sys.path directories that might contain "old-style" packages""" |
