Skip to content

Commit b698527

Browse files
authored
bug fix/setup with recursive directory package data (#99)
1 parent 1a928b6 commit b698527

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ def run(self):
7575
'visualdl.server.onnx',
7676
]
7777

78+
datas = []
79+
data_root = os.path.join(TOP_DIR, 'visualdl/server/dist')
80+
for root, dirs, files in os.walk(data_root):
81+
for filename in files:
82+
path = os.path.join(root, filename)[len(data_root)+1:]
83+
datas.append(path)
84+
7885
setup(
7986
name="visualdl",
8087
version=VERSION_NUMBER,
@@ -84,7 +91,7 @@ def run(self):
8491
keywords="visualization deeplearning",
8592
long_description=read('README.md'),
8693
install_requires=install_requires,
87-
package_data={'visualdl.server': ['dist/*', 'dist/fonts/*'],
94+
package_data={'visualdl.server': datas,
8895
'visualdl':['core.so'],
8996
'visualdl.python':['core.so']},
9097
packages=packages,

0 commit comments

Comments
 (0)