File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ VIRTUALENV_DIR =.venv
2
+ ACTIVATE =$(VIRTUALENV_DIR ) /bin/activate
3
+
4
+ venv :
5
+ @echo Creating venv for notebooks
6
+ @python3 -m venv $(VIRTUALENV_DIR )
7
+
8
+ cache_openvino_packages :
9
+ @echo Cache openvino packages
10
+ @. $(ACTIVATE ) ; python -m pip install --upgrade pip
11
+ mkdir pipcache
12
+ @. $(ACTIVATE ) ; python -m pip install --cache-dir pipcache --no-deps openvino openvino-dev nncf
13
+ cp -r pipcache pipcache_openvino
14
+ @. $(ACTIVATE ) ; python -m pip uninstall -y openvino openvino-dev nncf
15
+
16
+ install_dependencies :
17
+ @echo Installing dependencies
18
+ @. $(ACTIVATE ) ; python -m pip install --upgrade pip
19
+ @. $(ACTIVATE ) ; python -m pip install -r .ci/dev-requirements.txt --cache-dir pipcache
20
+ @. $(ACTIVATE ) ; python -m ipykernel install --user --name openvino_env
21
+ @. $(ACTIVATE ) ; python -m pip freeze
22
+
23
+ check_install :
24
+ @echo Checking installation
25
+ @. $(ACTIVATE ) ; python check_install.py
26
+
27
+ convert_notebooks : venv cache_openvino_packages install_dependencies check_install
28
+ @echo Running notebooks
29
+ @. $(ACTIVATE ) ; bash .ci/convert_notebooks.sh
You can’t perform that action at this time.
0 commit comments