File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
- SHELL: =/bin/bash
1
+ SHELL := /bin/bash
2
+ .PHONY : init-venv clean-venv clean install install-dev reinstall reinstall-dev
2
3
3
4
init-venv :
4
5
python3 -m venv venv && source ./venv/bin/activate
5
6
6
7
clean-venv :
7
8
source ./venv/bin/activate && \
8
9
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 && \
10
11
rm make_venv_to_uninstall.txt
11
12
12
13
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/
18
15
19
- install :
16
+ install : init-venv
17
+ source ./venv/bin/activate && \
20
18
python3 -m pip install .
21
19
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
You can’t perform that action at this time.
0 commit comments