From 5c7f538b8efa7950dc0eb138a57c23c7ea75fa84 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 23 Feb 2016 07:14:52 +0100 Subject: [PATCH] [fix] handle static files in a generic matter in setup.py --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b09609d..4dee87f 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,9 @@ #!/usr/bin/python # -*- coding:Utf-8 -*- +import os from setuptools import setup +from operator import add try: from pypandoc import convert @@ -29,6 +31,6 @@ setup(name='prosopopee', keywords='', include_package_data=True, package_data={ - 'prosopopee': ["themes/*/*/*", "themes/*/*/*/*"], + 'prosopopee': reduce(add, [[x[0].replace("prosopopee/", "", 1) + y for y in x[2]] for x in os.walk("prosopopee/themes/")], []), }, )