From 86e6149d07e4134d91c3effc68cbfadc97e97dcf Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 19 Mar 2017 16:20:21 +0100 Subject: Fix compatibility with older versions of setuptools package_data must not include directories. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 487c90d..aa90b1d 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ init_path = os.path.join(os.path.dirname(__file__), with open(init_path) as f: version = re.search(r'VERSION = "([^"]+)"', f.read()).group(1) os.chdir("radicale_web") -web_data = glob.glob("web/**/*[!~]", recursive=True) +web_data = list(filter(os.path.isfile, glob.glob("web/**/*[!~]", recursive=True))) os.chdir(os.pardir) setup( -- cgit