Commit 3d0d96c8 by Tatsuya Nishiyama Committed by Tianqi Chen

Fix runtime error on osx (#1449)

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