Skip to content

Commit

Permalink
[VERSION] Move version script to the project root (apache#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored and AWS Neo committed Feb 20, 2019
1 parent 8c91f45 commit b10895e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/update_version.py → version.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def update(file_name, pattern, repl):


def main():
curr_dir = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
proj_root = os.path.abspath(os.path.join(curr_dir, ".."))
proj_root = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
# python path
update(os.path.join(proj_root, "python", "tvm", "_ffi", "libinfo.py"),
r"(?<=__version__ = \")[.0-9a-z]+", __version__)
Expand Down

0 comments on commit b10895e

Please sign in to comment.