File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,10 +11,17 @@ def install_hivecraft(version):
1111 """Install Hivecraft from GitHub"""
1212 print (f"🐝 Installing Hivecraft version: { version } " )
1313
14- if version .lower () == "latest" :
15- cmd = ["pip" , "install" , "git+https://github.com/AlgoHive-Coding-Puzzles/HiveCraft.git" ]
16- else :
17- cmd = ["pip" , "install" , f"git+https://github.com/AlgoHive-Coding-Puzzles/HiveCraft.git@{ version } " ]
14+ # if version.lower() == "latest":
15+ # cmd = ["pip", "install", "git+https://github.com/AlgoHive-Coding-Puzzles/HiveCraft.git"]
16+ # else:
17+ # cmd = ["pip", "install", f"git+https://github.com/AlgoHive-Coding-Puzzles/HiveCraft.git@{version}"]
18+
19+ hivecraft_p = "hivecraft"
20+ if version :
21+ hivecraft_p += f"=={ version } "
22+
23+ # Install the latest version of Hivecraft from PyPI
24+ cmd = ["pip" , "install" , hivecraft_p ]
1825
1926 subprocess .run (cmd , check = True )
2027 print ("✅ Hivecraft installed successfully" )
You can’t perform that action at this time.
0 commit comments