forked from openvinotoolkit/openvino_notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 988 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
VIRTUALENV_DIR=.venv
ACTIVATE=$(VIRTUALENV_DIR)/bin/activate
venv:
@echo Creating venv for notebooks
@python3 -m venv $(VIRTUALENV_DIR)
cache_openvino_packages:
@echo Cache openvino packages
@. $(ACTIVATE); python -m pip install --upgrade pip
mkdir pipcache
@. $(ACTIVATE); python -m pip install --cache-dir pipcache --no-deps openvino nncf
cp -r pipcache pipcache_openvino
@. $(ACTIVATE); python -m pip uninstall -y openvino nncf
install_dependencies:
@echo Installing dependencies
@. $(ACTIVATE); python -m pip install --upgrade pip
@. $(ACTIVATE); python -m pip install -r .ci/dev-requirements.txt --cache-dir pipcache
@. $(ACTIVATE); python -m ipykernel install --user --name openvino_env
@. $(ACTIVATE); python -m pip freeze
check_install:
@echo Checking installation
@. $(ACTIVATE); python check_install.py
convert_notebooks: venv cache_openvino_packages install_dependencies check_install
@echo Running notebooks
@. $(ACTIVATE); bash .ci/convert_notebooks.sh