also exclude SCM metadata dirs from the sources and patches zip files of Windows builds
This commit is contained in:
parent
c7a3d1f67b
commit
407a1764e4
1 changed files with 3 additions and 0 deletions
|
|
@ -156,6 +156,9 @@ class WindowsBuild(object):
|
|||
roottrim = len(rootdir) - len(rootbase)
|
||||
zfo = zipfile.ZipFile(filename, 'w', zipfile.ZIP_DEFLATED)
|
||||
for dirpath, dirnames, filenames in os.walk(rootdir):
|
||||
for skip in ['CVS', '.svn', '.git']:
|
||||
if skip in dirnames:
|
||||
dirnames.remove(skip)
|
||||
for filename in filenames:
|
||||
filepath = os.path.join(dirpath, filename)
|
||||
zfo.write(filepath, filepath[roottrim:])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue