[fix] handle static files in a generic matter in setup.py
This commit is contained in:
parent
0f8cd3a28f
commit
5c7f538b8e
4
setup.py
4
setup.py
@ -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/")], []),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user