Commit 3d0d96c8 by Tatsuya Nishiyama Committed by Tianqi Chen

Fix runtime error on osx (#1449)

parent 72fa4c1d
...@@ -104,10 +104,11 @@ setup_kwargs = {} ...@@ -104,10 +104,11 @@ setup_kwargs = {}
# For bdist_wheel only # For bdist_wheel only
if wheel_include_libs: if wheel_include_libs:
for path in LIB_LIST: with open("MANIFEST.in", "w") as fo:
shutil.copy(path, os.path.join(CURRENT_DIR, 'tvm')) for path in LIB_LIST:
_, libname = os.path.split(path) shutil.copy(path, os.path.join(CURRENT_DIR, 'tvm'))
fo.write("include tvm/%s\n" % libname) _, libname = os.path.split(path)
fo.write("include tvm/%s\n" % libname)
setup_kwargs = { setup_kwargs = {
"include_package_data": True "include_package_data": True
} }
...@@ -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