do not package .swp files (fixes #269)

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
remotes/origin/3.0
Nico Schottelius 11 years ago
parent 77df0ae324
commit 4cca593071
  1. 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