summaryrefslogtreecommitdiff
path: root/pip/util.py
diff options
context:
space:
mode:
authorCarl Meyer <carl@dirtcircle.com>2010-02-20 12:13:21 -0500
committerCarl Meyer <carl@dirtcircle.com>2010-02-20 12:13:21 -0500
commit0fa4cb4f79721339b55f4eb768af6bc7d15c7f3a (patch)
treecf701445f069e1f7dc053dc01b753e9cd7ce61c2 /pip/util.py
parent4b7b0b2c909cca8e6951d167b49c2c39eb100e6f (diff)
downloadpip-0fa4cb4f79721339b55f4eb768af6bc7d15c7f3a.tar.gz
allow global pip to uninstall from anywhere; fixes #44
Diffstat (limited to 'pip/util.py')
-rw-r--r--pip/util.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/pip/util.py b/pip/util.py
index 4e9894a97..1857ca92f 100644
--- a/pip/util.py
+++ b/pip/util.py
@@ -16,7 +16,7 @@ __all__ = ['rmtree', 'display_path', 'backup_dir',
'format_size', 'is_url', 'is_filename',
'strip_prefix', 'is_svn_page', 'file_contents',
'split_leading_dir', 'has_leading_dir',
- 'make_path_relative', 'normalize_path', 'is_framework_layout',
+ 'make_path_relative', 'normalize_path',
'get_file_content', 'renames']
def rmtree(dir):
@@ -262,13 +262,6 @@ def normalize_path(path):
"""
return os.path.normcase(os.path.realpath(path))
-def is_framework_layout(site_packages_dir):
- """Return True if the current platform is the default Python of Mac OS X
- which installs scripts in /usr/local/bin"""
- return (sys.platform[:6] == 'darwin' and
- (site_packages_dir[:9] == '/Library/' or
- site_packages_dir[:16] == '/System/Library/'))
-
_scheme_re = re.compile(r'^(http|https|file):', re.I)
_url_slash_drive_re = re.compile(r'/*([a-z])\|', re.I)