Commit f15f69bf authored by zhuwenwen's avatar zhuwenwen
Browse files

add dcu version and readme

parent 2bd45062
...@@ -36,4 +36,8 @@ pip install dist/colossalai* ...@@ -36,4 +36,8 @@ pip install dist/colossalai*
``` ```
## Note ## Note
+ 若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/ + 若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
\ No newline at end of file
## 参考
- [README_ORIGIN](README_ORIGIN.md)
- [README_zh-Hans](README_zh-Hans.md)
\ No newline at end of file
...@@ -154,7 +154,7 @@ def get_version_add(sha: Optional[str] = None) -> str: ...@@ -154,7 +154,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
lines=[] lines=[]
with open(add_version_path, 'r',encoding='utf-8') as file: with open(add_version_path, 'r',encoding='utf-8') as file:
lines = file.readlines() lines = file.readlines()
lines[1] = "__version__='0.1.13+{}'\n".format(version) lines[2] = "__dcu_version__ = '0.1.13+{}'\n".format(version)
with open(add_version_path, encoding="utf-8",mode="w") as file: with open(add_version_path, encoding="utf-8",mode="w") as file:
file.writelines(lines) file.writelines(lines)
file.close() file.close()
...@@ -181,7 +181,7 @@ def get_version(): ...@@ -181,7 +181,7 @@ def get_version():
get_version_add() get_version_add()
with open(version_py_path, encoding='utf-8') as f: with open(version_py_path, encoding='utf-8') as f:
exec(compile(f.read(), version_py_path, 'exec')) exec(compile(f.read(), version_py_path, 'exec'))
return locals()['__version__'] return locals()['__dcu_version__']
return version return 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