Skip to content

Commit 58e8dde

Browse files
Salman Haqmgh
Salman Haq
authored andcommitted
fix missing js_src folder: include it in package data and put .pkg in static types.
1 parent a569785 commit 58e8dde

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ recursive-include hookbox *.css
44
recursive-include hookbox *.jpg
55
recursive-include hookbox *.png
66
recursive-include hookbox *.giff
7+
recursive-include hookbox/js_src *

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
'*.png',
1313
'*.txt*',
1414
'*.py',
15-
'*.template'
15+
'*.template',
16+
'*.pkg'
1617
]
1718

1819
#if sys.platform != "win32":
@@ -37,7 +38,8 @@
3738
def find_package_data():
3839
targets = [
3940
os.path.join('hookbox', 'static'),
40-
os.path.join('hookbox', 'admin', 'static')
41+
os.path.join('hookbox', 'admin', 'static'),
42+
os.path.join('hookbox', 'js_src')
4143
]
4244
package_data = {'': reduce(list.__add__, [ '.git' not in d and [ os.path.join(d[len('hookbox/'):], e) for e in
4345
static_types ] or [] for (d, s, f) in reduce(list.__add__, [ [ i for i in os.walk(target) ] for target in targets ])

0 commit comments

Comments
 (0)