Bugs item #1702551, was opened at 2007-04-18 01:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1702551&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Guy Dalberto (guy-dalberto)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils sdist does not exclude SVN/CVS files on Windows

Initial Comment:
+ Bug is specific to Windows platform

+ When creating a source distribution with :
**setup.py sdist**

+ the files in CVS/RCS/.svn folders should be     excluded, as specified by 
paragraph 4.1 of  distutils documentation

+ on windows, they are not excluded, because :
   + the pattern is r'/(RCS|CVS|\.svn)/.*'
   + the filepathes are in the perverse Windows style (separated by backslashes)

+ I could exclude those files by doing either :
  + add a <<global-exclude .svn/*>> in manifest.in
  + modify line 357 of distutils/command/sdist.py

+ initial line
self.filelist.exclude_pattern(r'/(RCS|CVS|\.svn)/.*', is_regex=1)

+ modified lines
reossep = (os.sep == '/' and '/' or r'\\')
self.filelist.exclude_pattern(r'%s(RCS|CVS|\.svn)%s.*' % (reossep, reossep), 
is_regex=1)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1702551&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to