Skip to content

Commit 7aef0c5

Browse files
committed
Remove bittensor installation/uninstallation, appears not to actually take place.
1 parent 1e0e358 commit 7aef0c5

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

tests/e2e_tests/utils/chain_interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def wait_epoch(subtensor: "Subtensor", netuid: int = 1):
8181
q_tempo = [v for (k, v) in subtensor.query_map_subtensor("Tempo") if k == netuid]
8282
if len(q_tempo) == 0:
8383
raise Exception("could not determine tempo")
84-
tempo = q_tempo[0]
84+
tempo = q_tempo[0].value
8585
logging.info(f"tempo = {tempo}")
8686
await wait_interval(tempo, subtensor, netuid)
8787

tests/e2e_tests/utils/e2e_test_utils.py

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

8080

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])
84-
85-
8681
def uninstall_templates(install_dir):
87-
subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "bittensor", "-y"])
8882
# Delete everything in directory
8983
shutil.rmtree(install_dir)
9084

@@ -94,7 +88,6 @@ def __init__(self):
9488
self.dir = clone_or_update_templates()
9589

9690
def __enter__(self):
97-
install_bittensor()
9891
return self
9992

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

0 commit comments

Comments
 (0)