From c8c9b75cbb82654b463d3175430900f58ba951ca Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 15 May 2014 23:43:19 -0400 Subject: FileList.append already excludes files that are not UTF-8 encodable, so rely on it when building the manifest. Ref #193 --- setuptools/command/egg_info.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'setuptools') diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index f6347af9..0175bbaa 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -252,21 +252,8 @@ class manifest_maker(sdist): Write the file list in 'self.filelist' to the manifest file named by 'self.manifest'. """ - # The manifest must be UTF-8 encodable. See #303. - if sys.version_info >= (3,): - files = [] - for file in self.filelist.files: - try: - file.encode("utf-8") - except UnicodeEncodeError: - log.warn("'%s' not UTF-8 encodable -- skipping" % file) - else: - files.append(file) - self.filelist.files = files - - files = self.filelist.files if os.sep!='/': - files = [f.replace(os.sep,'/') for f in files] + files = [f.replace(os.sep,'/') for f in self.filelist.files] self.execute(write_file, (self.manifest, files), "writing manifest file '%s'" % self.manifest) -- cgit v1.2.3