代码拉取完成,页面将自动刷新
同步操作将从 安谋科技(Arm China)/Compass_Integration 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright © 2022 Arm China Co. Ltd. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import re
from setuptools import setup, find_packages
from distutils.core import setup
from distutils.extension import Extension
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
import AIPUBuilder
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
__VERSION__ = AIPUBuilder.__VERSION__
__build_number__ = os.getenv("BUILD_NUMBER")
__min_pkg_path__ = os.getenv("MINIPKG_PATH")
assert __min_pkg_path__, "Cannot find mini package path (MINIPKG_PATH) in env"
if __build_number__ is not None and len(__build_number__) != 0:
__build_number__ = ".open" + __build_number__
__VERSION__ = __VERSION__ + str(__build_number__)
init_file = ["AIPUBuilder", "AIPUBuilder/UnifiedParser"]
for init_f in init_file:
init_f = os.path.join(__min_pkg_path__, "AIPUBuilder",
"python", "src", init_f, "__init__.py")
with open(init_f) as f:
c = f.read()
c = re.sub("__build_number__\s*=.+",
"__build_number__='"+__build_number__+"'", c)
if len(c) != 0:
with open(init_f, "w") as f:
f.write(c)
entry_points = """
[console_scripts]
aipuparse = AIPUBuilder.UnifiedParser.univ_main:main
aipuopt = AIPUBuilder.Optimizer.tools.optimizer_main:main
aipugb = AIPUBuilder.CGBuilder:caipugb
aipurun = AIPUBuilder.CGBuilder:caipurun
aipubuild = AIPUBuilder.main:main
aipubinutils = AIPUBuilder.CGBuilder:aipubinutils
aipu_profiler = AIPUBuilder.Profiler.main:main
aipugsim = AIPUBuilder.simplifier.main:main
"""
setup(
name="AIPUBuilder",
version=__VERSION__,
description="A Graph Builder for AIPU",
author='Neo WANG',
packages=find_packages(__min_pkg_path__ + '/AIPUBuilder/python/src'),
package_dir={'': __min_pkg_path__ + '/AIPUBuilder/python/src'},
package_data={
'': [
"*.so",
"*.a"
]
},
install_requires=[
"clang",
"cloudpickle",
"decorator",
"editdistance",
"future",
"matplotlib",
"networkx",
"onnx>=1.11",
"onnxoptimizer",
"onnx-simplifier",
"opencv-python",
"psutil",
"PyYAML",
"scipy",
"sympy",
"synr",
"tensorflow>=2.6"
"tflite"
"torch>=1.11",
"torchvision",
"tornado",
"tqdm"
],
cmdclass={'bdist_wheel': bdist_wheel},
entry_points=entry_points,
classifiers=[
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
],
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。