From 746d9ec12bd59c2a4cc43c3354ccf94d9543bcbe Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 14 Jan 2014 11:35:24 +0100 Subject: [PATCH] do not package .gitignore into pypi package (fixes #255) Signed-off-by: Nico Schottelius --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 25fc4820..32d734b8 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,11 @@ import os def data_finder(data_dir): entries = [] for name in os.listdir(data_dir): + + # Skip .gitignore files + if name == ".gitignore": + continue + entry = os.path.join(data_dir, name) if os.path.isdir(entry): entries.extend(data_finder(entry))