提交 ccbc6761 编写于 作者: M Megvii Engine Team

Revert "fix(whl): append buildid to wheel version"

This reverts commit 00dabfa147e11e5f9a439da64a54de320eb9a238.

GitOrigin-RevId: 87e11e21be5f9334fa748fd8bc45778cd2631516
上级 0e3a6329
......@@ -11,7 +11,6 @@ import os
import re
import pathlib
import platform
import subprocess
from distutils.file_util import copy_file
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext as _build_ext
......@@ -48,11 +47,9 @@ with open("megengine/version.py") as fp:
__version__ = v['__version__']
email = 'megengine@megvii.com'
commit_id = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip().decode('ascii')
__version__ = '{}+1.git.{}'.format(__version__, commit_id)
local_version = os.environ.get('LOCAL_VERSION')
if local_version:
__version__ = '{}.{}'.format(__version__, local_version)
__version__ = '{}+{}'.format(__version__, local_version)
packages = find_packages(exclude=['test'])
megengine_data = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册