diff options
| author | Stefan H. Holek <stefan@epy.co.at> | 2012-11-10 14:29:10 +0100 |
|---|---|---|
| committer | Stefan H. Holek <stefan@epy.co.at> | 2012-11-10 14:29:10 +0100 |
| commit | 84b0113ce4716906af6a2a9136db67bfd743c253 (patch) | |
| tree | 1ea5bd3a313247db8b1db8d2f610f90b69136cc9 /setuptools/command/egg_info.py | |
| parent | 3d1a3b2d83cd8e774648f92bb82ee44ea26c11b8 (diff) | |
| parent | 057a7d98522cfb5fbee1c183b9922c919fb782b9 (diff) | |
| download | python-setuptools-git-84b0113ce4716906af6a2a9136db67bfd743c253.tar.gz | |
Merge the backout. Mercurial is killing me.
--HG--
branch : distribute
extra : rebase_source : 8315b86467e945ff108461f97af20358384a513f
Diffstat (limited to 'setuptools/command/egg_info.py')
| -rwxr-xr-x | setuptools/command/egg_info.py | 11 |
1 files changed, 5 insertions, 6 deletions
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()) |
