Commit 3d0d96c8 by Tatsuya Nishiyama Committed by Tianqi Chen

Fix runtime error on osx (#1449)

parent 72fa4c1d
...@@ -104,6 +104,7 @@ setup_kwargs = {} ...@@ -104,6 +104,7 @@ setup_kwargs = {}
# For bdist_wheel only # For bdist_wheel only
if wheel_include_libs: if wheel_include_libs:
with open("MANIFEST.in", "w") as fo:
for path in LIB_LIST: for path in LIB_LIST:
shutil.copy(path, os.path.join(CURRENT_DIR, 'tvm')) shutil.copy(path, os.path.join(CURRENT_DIR, 'tvm'))
_, libname = os.path.split(path) _, libname = os.path.split(path)
...@@ -118,7 +119,7 @@ if include_libs: ...@@ -118,7 +119,7 @@ if include_libs:
LIB_LIST[i] = os.path.relpath(path, curr_path) LIB_LIST[i] = os.path.relpath(path, curr_path)
setup_kwargs = { setup_kwargs = {
"include_package_data": True, "include_package_data": True,
"package_data": {'tvm': LIB_LIST} "data_files": [('tvm', LIB_LIST)]
} }
setup(name='tvm', setup(name='tvm',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment