Unverified Commit 74b035a2 by Tianqi Chen Committed by GitHub

[VERSION] Move version script to the project root (#2556)

parent 0f2e4328
......@@ -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__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment