"test/algo/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "c53be96370a0772c25c4e86c10108455e942d4d6"
Commit 6e138104 authored by zhanggzh's avatar zhanggzh
Browse files

change get_dcu_version code

parent 4443b24b
...@@ -41,7 +41,7 @@ def nni_whl_name(): ...@@ -41,7 +41,7 @@ def nni_whl_name():
sha = "git" + sha_value(tf_root)[0:7] sha = "git" + sha_value(tf_root)[0:7]
abi = "abi" + abi_value() abi = "abi" + abi_value()
dtk_version = dtk_version_value() dtk_version = dtk_version_value()
whl_name = "+" + sha + "." + abi + "." + dtk_version whl_name = "+das1.1." + sha + "." + abi + "." + dtk_version
return whl_name return whl_name
except Exception: except Exception:
return UNKNOWN return UNKNOWN
...@@ -50,7 +50,7 @@ def dcu_version(): ...@@ -50,7 +50,7 @@ def dcu_version():
try: try:
release = os.environ.get('NNI_RELEASE') release = os.environ.get('NNI_RELEASE')
nni_version = release or UNKNOWN nni_version = release or UNKNOWN
dcu_version = nni_version + "+" "das1.1" + nni_whl_name() dcu_version = nni_version + nni_whl_name()
return dcu_version return dcu_version
except Exception: except Exception:
return UNKNOWN return UNKNOWN
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