Browse Source

do not package .swp files (fixes #269)

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
3.0
Nico Schottelius 8 years ago
parent
commit
4cca593071
  1. 6
      setup.py

6
setup.py

@ -1,6 +1,7 @@
from distutils.core import setup
import cdist
import os
import re
def data_finder(data_dir):
entries = []
@ -10,6 +11,11 @@ def data_finder(data_dir):
if name == ".gitignore":
continue
# Skip vim swp files
swpfile = re.search(r'^\..*\.swp$', name)
if swpfile:
continue
entry = os.path.join(data_dir, name)
if os.path.isdir(entry):
entries.extend(data_finder(entry))

Loading…
Cancel
Save