Skip to content

Commit 3509863

Browse files
authored
Merge pull request #2965 from opentensor/feat/roman/make-update
improve make file
2 parents d0189e1 + dc441af commit 3509863

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Makefile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
SHELL:=/bin/bash
1+
SHELL := /bin/bash
2+
.PHONY: init-venv clean-venv clean install install-dev reinstall reinstall-dev
23

34
init-venv:
45
python3 -m venv venv && source ./venv/bin/activate
56

67
clean-venv:
78
source ./venv/bin/activate && \
89
pip freeze > make_venv_to_uninstall.txt && \
9-
pip uninstall -r make_venv_to_uninstall.txt && \
10+
pip uninstall -r make_venv_to_uninstall.txt -y && \
1011
rm make_venv_to_uninstall.txt
1112

1213
clean:
13-
rm -rf dist/ && \
14-
rm -rf build/ && \
15-
rm -rf bittensor.egg-info/ && \
16-
rm -rf .pytest_cache/ && \
17-
rm -rf lib/
14+
rm -rf dist/ build/ bittensor.egg-info/ .pytest_cache/ lib/
1815

19-
install:
16+
install: init-venv
17+
source ./venv/bin/activate && \
2018
python3 -m pip install .
2119

22-
install-dev:
23-
python3 -m pip install '.[dev]'
20+
install-dev: init-venv
21+
source ./venv/bin/activate && \
22+
python3 -m pip install -e '.[dev]'
23+
24+
reinstall: clean clean-venv install
25+
26+
reinstall-dev: clean clean-venv install-dev

0 commit comments

Comments
 (0)