[Distutils] Some questions about setuptools

Phillip J. Eby pje at telecommunity.com
Sat Aug 6 18:24:16 CEST 2005


At 08:51 AM 8/6/2005 -0400, Kevin Dangoor wrote:
>I'm using svn 1.1.4 and I just confirmed that I have deleted files
>(that are committed as deleted) in my .svn/entries files.

I've attached a patch that attempts to detect and ignore deleted entries; 
please let me know if it works for you.
-------------- next part --------------
Index: setuptools/command/sdist.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/sdist.py,v
retrieving revision 1.4
diff -u -r1.4 sdist.py
--- setuptools/command/sdist.py	9 Jul 2005 04:21:22 -0000	1.4
+++ setuptools/command/sdist.py	6 Aug 2005 16:23:18 -0000
@@ -84,7 +84,11 @@
     (convert_path('CVS/Entries'),
         re_finder(re.compile(r"^\w?/([^/]+)/", re.M))),
     (convert_path('.svn/entries'),
-        re_finder(re.compile(r'name="([^"]+)"'), unescape)),
+        re_finder(
+            re.compile(r'name="([^"]+)"(?![^>]+deleted="true")', re.I),
+            unescape
+        )
+    ),
     (convert_path('.svn/dir-props'), externals_finder),
 ]
 
@@ -117,7 +121,3 @@
 
 
 
-
-
-
-


More information about the Distutils-SIG mailing list