Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PYTHON=python3
VENV=.venv
VENVPATH=$(VENV)/$(shell uname)-$(shell uname -m)-sdk-python
VIRTUALENV = $(PYTHON) -m venv

ENV=prod
REGION=.learnosity.com
Expand Down Expand Up @@ -68,7 +69,7 @@ real-clean: clean
# Python environment and dependencies
venv: $(VENVPATH)
$(VENVPATH):
unset PYTHONPATH; virtualenv -p$(PYTHON) $(VENVPATH)
unset PYTHONPATH; $(VIRTUALENV) $(VENVPATH)
$(call venv-activate); \
pip install -e .

Expand Down
12 changes: 12 additions & 0 deletions docker.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PYTHON_VERSION = 3.9
PWD = $(shell pwd -P)
DKR = docker container run -t --rm \
-v $(PWD):/srv/sdk/python \
-v lrn-sdk-python_cache:/root/.cache:z,delegated \
-w /srv/sdk/python \
-e PYTHON_VERSION=$(PYTHON_VERSION) \
-e ENV -e REGION -e VER \
python:$(PYTHON_VERSION)

%:
$(DKR) make -e $@