From 63d507adccf8207a40e2b22a8c11f79efb83f56a Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sun, 17 Jul 2005 19:01:15 +0000 Subject: ``Distribution`` objects now implement the ``IResourceProvider`` and ``IMetadataProvider`` interfaces, so you don't need to reference the (no longer available) ``metadata`` attribute to get at these interfaces. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041133 --- setuptools/command/easy_install.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'setuptools/command/easy_install.py') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 6d61c951..b096a48e 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -368,22 +368,21 @@ class easy_install(Command): ) def install_egg_scripts(self, dist): - metadata = dist.metadata - if self.exclude_scripts or not metadata.metadata_isdir('scripts'): + if self.exclude_scripts or not dist.metadata_isdir('scripts'): return - for script_name in metadata.metadata_listdir('scripts'): + for script_name in dist.metadata_listdir('scripts'): self.install_script( dist, script_name, - metadata.get_metadata('scripts/'+script_name).replace('\r','\n') + dist.get_metadata('scripts/'+script_name).replace('\r','\n') ) def should_unzip(self, dist): if self.zip_ok is not None: return not self.zip_ok - if dist.metadata.has_metadata('not-zip-safe'): + if dist.has_metadata('not-zip-safe'): return True - if not dist.metadata.has_metadata('zip-safe'): + if not dist.has_metadata('zip-safe'): return True return False @@ -405,6 +404,7 @@ class easy_install(Command): + -- cgit v1.2.1