forked from maxjhandsome/jittor
add version string
This commit is contained in:
parent
752fb05e50
commit
802cf56162
|
@ -7,6 +7,7 @@
|
|||
# This file is subject to the terms and conditions defined in
|
||||
# file 'LICENSE.txt', which is part of this source code package.
|
||||
# ***************************************************************
|
||||
__version__ = '1.1.5.6'
|
||||
from . import lock
|
||||
with lock.lock_scope():
|
||||
from . import compiler
|
||||
|
|
10
setup.py
10
setup.py
|
@ -19,9 +19,17 @@ path = os.path.dirname(__file__)
|
|||
with open(os.path.join(path, "README.md"), "r", encoding='utf8') as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
with open(os.path.join(path, "python/jittor/__init__.py"), "r", encoding='utf8') as fh:
|
||||
for line in fh:
|
||||
if line.startswith('__version__'):
|
||||
version = line.split("'")[1]
|
||||
break
|
||||
else:
|
||||
raise RuntimeError("Unable to find version string.")
|
||||
|
||||
setuptools.setup(
|
||||
name='jittor',
|
||||
version='1.1.5.6',
|
||||
version=version,
|
||||
# scripts=[],
|
||||
author="Jittor Group",
|
||||
author_email="ran.donglang@gmail.com",
|
||||
|
|
Loading…
Reference in New Issue