From 406b907f1b790dc9aa9afbf9de1a4d07c7e21802 Mon Sep 17 00:00:00 2001 From: Wyatt Lee Baldwin Date: Wed, 12 Feb 2014 00:52:26 -0800 Subject: Exclude __pycache__ in find_packages. --HG-- extra : rebase_source : fecc027e4355f36d779967683a213fb2d867d21a --- setuptools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools') diff --git a/setuptools/__init__.py b/setuptools/__init__.py index d1288658..ff24c178 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -38,7 +38,7 @@ def find_packages(where='.', exclude=()): """ out = [] stack=[(convert_path(where), '')] - exclude = list(exclude) + ['ez_setup'] + exclude = list(exclude) + ['ez_setup', '*__pycache__'] while stack: where,prefix = stack.pop(0) for name in os.listdir(where): -- cgit v1.2.1