Skip to content

Commit 52e68e3

Browse files
committed
Rename install_templates, have it correctly use the bittensor filepath as the install point, removed the '-e'.
1 parent aacf074 commit 52e68e3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/e2e_tests/utils/e2e_test_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ def clone_or_update_templates(specific_commit=None):
7878
return install_dir + templates_repo
7979

8080

81-
def install_templates(install_dir):
82-
subprocess.check_call([sys.executable, "-m", "pip", "install", "-e", "."])
81+
def install_bittensor():
82+
bittensor_fp = os.path.dirname(os.path.dirname(os.path.abspath(bittensor.__file__)))
83+
subprocess.check_call([sys.executable, "-m", "pip", "install", bittensor_fp])
8384

8485

8586
def uninstall_templates(install_dir):
@@ -93,7 +94,7 @@ def __init__(self):
9394
self.dir = clone_or_update_templates()
9495

9596
def __enter__(self):
96-
install_templates(self.dir)
97+
install_bittensor()
9798
return self
9899

99100
def __exit__(self, exc_type, exc_value, traceback):

0 commit comments

Comments
 (0)