From 578a528da08dec7fc7a0a9b68ab4ce53e1d58ab1 Mon Sep 17 00:00:00 2001 From: Tatsuya Nishiyama Date: Thu, 19 Jul 2018 12:59:37 +0900 Subject: [PATCH] Fix runtime error on osx (#1449) --- python/setup.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python/setup.py b/python/setup.py index 5ae7a6d909e46..cbf8c5591703c 100644 --- a/python/setup.py +++ b/python/setup.py @@ -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 } @@ -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',