1 Star 0 Fork 130

zhangshuaiguo / akg

forked from MindSpore / akg-full-log 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 1002 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangrao124 提交于 2020-10-16 16:12 . fix setup.py to include libakg.so file
import os
from setuptools import setup
package_data = {'': ['*.so*']}
include_dirs = ['python/akg',
'third_party/incubator-tvm/python/tvm',
'third_party/incubator-tvm/topi/python/topi',
'tests/fuzz',
'tests/common']
def find_files(where=['.']):
"""
Return a package list
'where' is the root directory list
"""
dirs = [path.replace(os.path.sep, '.') for path in where]
for selected_root in where:
for root, all_dirs, files in os.walk(selected_root, followlinks=True):
for dir in all_dirs:
full_path = os.path.join(root, dir)
package = full_path.replace(os.path.sep, '.')
if '.' in dir:
continue
dirs.append(package)
dirs.append('build')
return dirs
setup(name='akg',
version='1.0',
description='akg python libs',
package_data=package_data,
packages=find_files(include_dirs))
C++
1
https://gitee.com/zhangshuaiguo/akg.git
git@gitee.com:zhangshuaiguo/akg.git
zhangshuaiguo
akg
akg
master

搜索帮助