Skip to content

Commit ebfdfd9

Browse files
authored
Add xpk.py warning (#915)
* feat: add xpk.py warning * style: pylint * feat: concat all into one string
1 parent 9b35b42 commit ebfdfd9

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

xpk.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,26 @@
3535

3636
from src.xpk.main import main
3737

38-
if __name__ == '__main__':
38+
print("""
39+
_ _ _ _ _ _ _
40+
| | | | | | | | | | | | | |
41+
| | | | | | | | | | | | | |
42+
| | | | | | | | | | | | | |
43+
| | | | | | | | | | | | | |
44+
|_| |_| |_| |_| |_| |_| |_|
45+
46+
(_) (_) (_) (_) (_) (_) (_)
47+
48+
WARNING: Launching via python3 xpk.py is deprecated and will be removed in future versions.
49+
Please switch to the installed CLI:
50+
* Development: Run make install (editable install)
51+
* Production: Run pip install xpk (official release)
52+
New Usage: xpk <command>
53+
54+
Read more at: https://github.com/AI-Hypercomputer/xpk/blob/main/docs/installation.md#3-install-xpk
55+
56+
57+
""")
58+
59+
if __name__ == "__main__":
3960
main()

0 commit comments

Comments
 (0)