2021-09-07 15:48:58 +00:00
|
|
|
define VENV_template
|
|
|
|
venv.$(1): venv.$(1)/bin/activate venv.$(1)/bin/environment.sh
|
|
|
|
|
2022-02-14 10:57:08 +00:00
|
|
|
venv.$(1)/bin/activate: venv/$(1)/requirements.txt submodules
|
2021-09-07 15:48:58 +00:00
|
|
|
@echo "Creating $(1) venv in $$@ from $$<"
|
|
|
|
virtualenv --python=python3.8 --prompt="($(1))" venv.$(1)
|
|
|
|
source venv.$(1)/bin/activate && \
|
2022-05-04 06:41:37 +00:00
|
|
|
pip3.8 install -U setuptools==56.0.0 && \
|
2022-02-14 10:57:08 +00:00
|
|
|
pip3.8 install -Ur venv/$(1)/requirements.txt && \
|
|
|
|
pip3.8 install -Ur neofs-keywords/requirements.txt
|
2021-09-07 15:48:58 +00:00
|
|
|
@echo "Applying activate script patch"
|
|
|
|
patch -R --dry-run -p1 -s -f -d venv.$(1)/bin/ < build_assets/activate.patch || \
|
|
|
|
patch -p1 -d venv.$(1)/bin/ < build_assets/activate.patch
|
|
|
|
|
|
|
|
venv.$(1)/bin/environment.sh: | venv/$(1)/environment.sh
|
|
|
|
ln -s ../../venv/$(1)/environment.sh venv.$(1)/bin/environment.sh
|
|
|
|
|
|
|
|
endef
|