Ticket #16017: sdist.py.diff
File sdist.py.diff, 1.0 KB (added by jdgleeson, 16 years ago) |
---|
-
/opt/local/lib/python2.5/site-packages/setuptools/command/
old new 1 1 from distutils.command.sdist import sdist as _sdist 2 2 from distutils.util import convert_path 3 from distutils import log 3 4 import os, re, sys, pkg_resources 4 5 5 6 entities = [ … … 38 39 39 40 40 41 41 42 42 def walk_revctrl(dirname=''): 43 43 """Find all files under revision control""" 44 44 for ep in pkg_resources.iter_entry_points('setuptools.file_finders'): … … 86 86 f = open(filename,'rU') 87 87 data = f.read() 88 88 f.close() 89 if data.startswith(' 8'): # subversion1.489 if data.startswith('9') or data.startswith('8'): # subversion 1.5/1.4 90 90 for record in map(str.splitlines, data.split('\n\x0c\n')[1:]): 91 91 if not record or len(record)>=6 and record[5]=="delete": 92 92 continue # skip deleted … … 202 202 203 203 204 204 205 # 205 # 206 No newline at end of file