Skip to content

Commit

Permalink
add version string
Browse files Browse the repository at this point in the history
  • Loading branch information
cjld committed Jul 15, 2020
1 parent 752fb05 commit 802cf56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/jittor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@
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="[email protected]",
Expand Down

0 comments on commit 802cf56

Please sign in to comment.