Skip to content

Commit

Permalink
Fix runtime error on osx (apache#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishi-t authored and tqchen committed Jul 19, 2018
1 parent 72fa4c1 commit 3d0d96c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ def is_pure(self):

# 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
}
Expand All @@ -118,7 +119,7 @@ def is_pure(self):
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',
Expand Down

0 comments on commit 3d0d96c

Please sign in to comment.