Module: check_mk
Branch: master
Commit: 9051c48ef4bbe870ed3073c2679557da341742e0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9051c48ef4bbe8…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Mon Oct 29 11:29:42 2018 +0100
fix-.venv-target: Use pipenv sync to install python packages exactly as
specified in Pipfile.lock (fastest way).
Change-Id: I2596f811b355eb7937385eda15c7159b5a5016fe
---
Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 330a7df..bebb292 100644
--- a/Makefile
+++ b/Makefile
@@ -500,9 +500,11 @@ Pipfile.lock: Pipfile
rm -rf .venv
.venv: Pipfile.lock
- $(PIPENV) install --dev
- $(PIPENV) clean
-# TODO: Part 2 of the hack for the Pipfile.lock target.
+# Remake .venv everytime Pipfile or Pipfile.lock are updated. Using the 'sync'
+# mode installs the dependencies exactly as speciefied in the Pipfile.lock.
+# This is extremely fast since the dependencies do not have to be resolved.
+ $(RM) -r .venv
+ $(PIPENV) sync --dev
touch .venv
# This dummy rule is called from subdirectories whenever one of the