[fix] handle static files in a generic matter in setup.py

This commit is contained in:
Laurent Peuch 2016-02-23 07:14:52 +01:00
parent 0f8cd3a28f
commit 5c7f538b8e

View File

@ -1,7 +1,9 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding:Utf-8 -*- # -*- coding:Utf-8 -*-
import os
from setuptools import setup from setuptools import setup
from operator import add
try: try:
from pypandoc import convert from pypandoc import convert
@ -29,6 +31,6 @@ setup(name='prosopopee',
keywords='', keywords='',
include_package_data=True, include_package_data=True,
package_data={ 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/")], []),
}, },
) )