From 057a7d98522cfb5fbee1c183b9922c919fb782b9 Mon Sep 17 00:00:00 2001 From: "Stefan H. Holek" Date: Sat, 10 Nov 2012 14:18:53 +0100 Subject: Revert yesterday's misguided attempt at being smart. --HG-- branch : distribute extra : rebase_source : 224fb95e8c8ad385a35187c49a102259e03e89a6 --- setuptools/command/egg_info.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'setuptools/command/egg_info.py') diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index ad02cec8..098dfe84 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -281,15 +281,14 @@ class FileList(_FileList): if item.endswith('\r'): # Fix older sdists built on Windows item = item[:-1] path = convert_path(item) - # Filter unused template files all of which have ASCII names try: - if sys.version_info >= (3,): - path.encode('ascii') - except UnicodeEncodeError: - self.files.append(path) - else: if os.path.exists(path): self.files.append(path) + elif path != manifest_maker.template: + log.warn("%r not found -- skipping", path) + except UnicodeEncodeError: + log.warn("%r not %s encodable -- skipping", path, + sys.getfilesystemencoding()) -- cgit v1.2.3